opensubscriber
   Find in this group all groups
 
Unknown more information…

l : log4php-user@logging.apache.org 2 June 2006 • 6:24PM -0400

Problem with %d in log4php.properties
by Eric BOYER

REPLY TO AUTHOR
 
REPLY TO GROUP




Hello

I want to use the %d in log4php.properties but nothing is returned :

log4php.appender.fichier.layout.ConversionPattern=%d - %-5p [%F:%L] - %m%n

or

log4php.appender.fichier.layout.ConversionPattern=%d{Y-m-d H:i:s} - %-5p
[%F:%L] - %m%n

nether return a date in my log !

I have for exemple :

- DEBUG [/home/boyere/public_html/testLog4Php/index2.php:11] - Hello
again 2!


In my PHP code I have :
$logger =& LoggerManager::getLogger('index.php');
$logger->debug('Hello again!');


what could be my problem please ?

Thanks
Eric

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.