Ok, but unfortunately I have until used this solution (see my first post) :(
An other idea ?
Christian grobmeier wrote:
>
>> It is a good solution to do in each function $logger =
>> Logger::getRootLogger(); ?
>
> thats ok. Logger::getRootLogger will always return the same logger
> instance.
> It is a good solution to do in each function $logger =
> Logger::getRootLogger(); ?
thats ok. Logger::getRootLogger will always return the same logger
instance. So you can do something like that:
Logger:configure(...);
function blub() {
$logger = Logger::getRootLogger();
$logger->doSomethi
I try this :
log4php.appender.default = LoggerAppenderFile
log4php.appender.default.file = ../../log/file.log
log4php.appender.default.layout = LoggerLayoutTTCC
log4php.appender.email = LoggerAppenderMail
log4php.appender.email.layout = LoggerLayoutTTCC
log4php.appender.email.from = aail...@softea
> I think the problem is this line in the functions but i m not sure:
> for mail :
> Logger::configure($_SERVER["DOCUMENT_ROOT"]."/log4php/appender_mail.properties");
>
> for file :
> Logger::configure($_SERVER["DOCUMENT_ROOT"]."/log4php/appender_file.properties");
Actually you are right. If you l
No, its' not this
My problem is if one of the two functions are used it works but it the both
are used.
The first is ok but the second no
I think the problem is this line in the functions but i m not sure:
for mail :
Logger::configure($_SERVER["DOCUMENT_ROOT"]."/log4php/appender_mail.properties");
Hi
can you try to put these into quotes?
> log4php.appender.email.from = '*...@***'
> log4php.appender.email.to = '*...@***'
> log4php.appender.email.subject = "Log4php test"
I cannot access the docs at the moment, but if you could try - that
might already solve your problem
If not, please send o
Hi everyone,
I have a problem when i use multiple file_properties.
I want to uses an appender_mail and an appender file :
//My appender_file.properties
log4php.appender.default = LoggerAppenderFile
log4php.appender.default.file = ../../log/file.log
log4php.appender.default.layout = LoggerLayoutTT