[email protected]
[Top] [All Lists]

Problem with %d in log4php.properties

Subject: Problem with %d in log4php.properties
From: Eric BOYER
Date: Fri, 02 Jun 2006 12:24:35 +0200
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

<Prev in Thread] Current Thread [Next in Thread>