Hi,
Now i am trying to append the LoggerAppenderMail(),when i execute the
code it process successfully without any error but the mail is not received
by the receiver,the code is,
$this->appenderMail = new LoggerAppenderMail();
$this->layourMail
Hi,
Maybe you can use isAsSevereAsThreshold() function. I can't try it
now. But if you need, I can check it on monday.
On Sat, May 8, 2010 at 9:55 AM, PriyaPrakash wrote:
>
> Hi,
> :working:
> Ya i know the standard level of log4php,but when we use the threshold it
> store the level based on pri
Hi,
:working::working:
Ya i know the standard level of log4php,but when we use the threshold it
store the level based on priority(ie)
if we set threshold like
$appender->setThreshold("WARN");
means it store the WARN levels and also to store their lower priority level
(INFO,DEBUG).
why w
On Friday 07 May 2010 12:13:14 PriyaPrakash wrote:
> Hi,
>
> Thanks for ur quick reply , i use that code now it write the log level in
> the log file, then i need how to filter the level for store the log level
> in different log file name (i.e)
>
> For example ;
>
> To store the INFO level in
Hi,
Thanks for ur quick reply , i use that code now it write the log level in
the log file, then i need how to filter the level for store the log level
in different log file name (i.e)
For example ;
To store the INFO level in separate log file name(it contain only the INFO
level message)
To st
On Friday 07 May 2010 11:48:24 PriyaPrakash wrote:
> Hi,
>
> I am currently working in the latest version of log4php2.0,use ur code,
> its work perfectly to add appender programmatically but the log level
> messages are not displayed in the log file,give ur ideas.
Hi,
If you use the code of this
Hi,
I am currently working in the latest version of log4php2.0,use ur code, its
work perfectly to add appender programmatically but the log level messages
are not displayed in the log file,give ur ideas.
--
View this message in context:
http://old.nabble.com/Add-appender-programmatically-tp
ah yes, I didn't see this. Maybe its worth thinking to
autmatically activateoptions once this appender is called
Thanks for giving feedback
On Thu, Apr 15, 2010 at 1:32 PM, Miquel Canes wrote:
> Hi,
> Finally, after using the php debuger, i found what's my problem.
>
> $logger = Logger::ge
Hi,
Finally, after using the php debuger, i found what's my problem.
$logger = Logger::getRootLogger();
$appender = new LoggerAppenderFile("programmatically");
$layout = new LoggerLayoutPattern("[%p] %t %c - %m%n");
$appender->setLayout($layout);
$appender->setFileName("programmatically.log");
$
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
13 matches
Mail list logo