Hi,
If i call the configure() function after add the appender, none of them works.
Well, all the loggers and appenders inside the property file are ignored.
If i try put the logger line of the property file on the bottom, happens the
same that if that line are on the top of the property file.
A
Hm
I think I know the problem. Its because you first need to configure
the appenders and then the loggers. Otherwise the references are not
set. This is also true for property files in general in log4php. First
appenders, then loggers.
In your case - I am not sure if there is a workaround for thi
Hello,
It doesn't work.
Logger::configure(dirname(__FILE__) . '/../log4php.properties');
$logger = Logger::getRootLogger();
$appender = new LoggerAppenderFile("programmatically");
$layout = new LoggerLayoutPattern("[%p] %t %c - %m%n");
$appender->setLayout($layout);
$appender->setFileName("prog
Hello,
whats returned if you do:
echo $logger->isInfoEnabled();
My guess is that info level is not enabled for the root logger
Also you might need to set a threshhold for your appender:
$appender->setThreshold($threshhold);
which is in fact a LoggerLevel. If you use ALL, you outputing all
Pls