By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,406 Members | 1,504 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,406 IT Pros & Developers. It's quick & easy.

How to set the config file in LOG4PHP

P: n/a
HI,

I downloaded log4php but I found the documentation on the site is VERY
POOR. After a lot of IMPRECATIONS, I was able to do a log without the
config file (fortunately I used log4J-AVA so I recalled some
examples....).

How can I configure and use log4php starting with an XML config file?

I don't think it is so difficult, but I was disappointed for the VERY
INADEGUATE documentation on the site.

Thanks for any hint!!
:)ario

Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Just as this:
<?

define("LOG4PHP_CONFIGURATION", "log4php.xml");
$logger =& LoggerManager::getLogger('helloworld');
$logger->info('hi');

?>

ProgDario wrote:
HI,

I downloaded log4php but I found the documentation on the site is VERY POOR. After a lot of IMPRECATIONS, I was able to do a log without the
config file (fortunately I used log4J-AVA so I recalled some
examples....).

How can I configure and use log4php starting with an XML config file?

I don't think it is so difficult, but I was disappointed for the VERY
INADEGUATE documentation on the site.

Thanks for any hint!!
:)ario


Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.