[log4perl-devel] Redirecting Screen appender does not work

2009-10-05 Thread Ronald Fischer
Perl. Ronald -- Ronald Fischer + If a packet hits a pocket on a socket on a port, + and the bus is interrupted and the interrupt's not caught, + then the socket packet pocket has an error to report. + (cited after Pe

[log4perl-devel] Appender::File : File handle gets undef

2009-10-05 Thread Ronald Fischer
ts upset due to so many "opening and closing of files"?) Ronald -- Ronald Fischer + If a packet hits a pocket on a socket on a port, + and the bus is interrupted and the interrupt's not caught, + then the socket packet pocket has an error to report

Re: [log4perl-devel] Limiting file size in log4perl

2009-08-26 Thread Ronald Fischer
27;s pretty much the case with Log::Dispatch::FileRotate, a given file > size, and a max value of 1. Thanks a lot! The perldoc says that FileRotate "provides a simple object for logging to files under the Log::Dispatch::* system", so I'm surprised that it will also work with Log

[log4perl-devel] Limiting file size in log4perl

2009-08-25 Thread Ronald Fischer
d one got too big. But maybe there is something built into Log4perl already, which works in that way? I checked the perldoc's and didn't find anything suitable though... Ronald -- Ronald Fischer + If a packet hits a pocket on a socket on a port, + and the bus is interrupted and the

Re: [log4perl-devel] How to set "append" mode in a polite way?

2009-03-24 Thread Ronald Fischer
> > I'm creating loggers with easy_init (deliberately using no > > initialization file), and found that they are always created in > > 'clobber' mode. > > If you want "append", use ">>file": Of course, thank you! I stupidly overlo

[log4perl-devel] How to set "append" mode in a polite way?

2009-03-23 Thread Ronald Fischer
me('app002')->{mode}='append'; This works, but it is a pretty bad solution, since I'm fiddling around with the implementation of Log::Log4perl::Appender::File. Is there a better way to set the mode? Just setting mode => 'append' in easy_init did not help.

[log4perl-devel] name => does not change name in easy_init

2009-03-23 Thread Ronald Fischer
er name, Log::Log4perl->appender_by_name('app002')->file_switch('request_specific.log'); it works. It seems that easy_init does not use the "name" parameter. Is this a bug in easy_init, or is it supposed to work that way? Ronald -- Ronald Fischer + If

Re: [log4perl-devel] Appender::File and Layout question

2009-03-10 Thread Ronald Fischer
$log_level, file => ">main.log", layout => '%.1p %d{dd.MM. HH:mm:ss (EEE)} %M(%L) %m%n' } {level => $log_level, file => '>dummy.log'), layout => '%.1p %d{HH:mm} %M(%L) %m%n', name => '

Re: [log4perl-devel] Appender::File and Layout question

2009-03-06 Thread Ronald Fischer
Resent of my posting from 24 Feb which seems to have been lost. - Original message - From: "Ronald Fischer" To: "Mike Schilli" Cc: "Mike Schilli" , "log4perl MailingList" Date: Tue, 24 Feb 2009 09:52:06 +0100 Subject: Re: [log4perl-devel] Append

Re: [log4perl-devel] Appender::File and Layout question

2009-02-24 Thread Ronald Fischer
is the "name" parameter used for when creating the Appender. I found the usage of name => in the perldoc, but what's its purpose? Finally, is my usage of passing a code reference to filename correct? Kind regards, Ronald > > -- Mike > > Mike Schilli > m...@p

Re: [log4perl-devel] Appender::File and Layout question

2009-02-23 Thread Ronald Fischer
On Fri, 20 Feb 2009 10:41 -0800, "Mike Schilli" wrote: > On Fri, 20 Feb 2009, Ronald Fischer wrote: > >> log4perl.logger = DEBUG, FooApp, BarApp, AnotherAppender > > > > This is valid Perl code? So I have to the left of the assignment a > > catenat

Re: [log4perl-devel] Appender::File and Layout question

2009-02-20 Thread Ronald Fischer
4). Then it schedules the pieces for execution. One schedule might be: R1, S1, S2, R2, S3, S4, R3 and executes them. While some "R"-piece is executed, logs should go to the "R.log" file. While some "S"-piece is executed, logs should go to the "S.log" file. Th

Re: [log4perl-devel] Appender::File and Layout question

2009-02-20 Thread Ronald Fischer
non-preemtive, i.e. no threads involved), we have a central "logging handler" which knows which request is the currently active one, and sends each logging event to the standard log, plus to the request-specific one. Any suggestion how I could implement this? Ronald -- Ronald Fisch

Re: [log4perl-devel] PatternLayout question

2008-06-20 Thread Ronald Fischer
PatternLayout > > ... > %p Priority of the logging event > ... Priority! Thanks a lot, I had overlooked this! Ronald -- Ronald Fischer <[EMAIL PROTECTED]> + If a packet hits a pocket on a socket on a port, + and the bus is interrupted and the interrupt

[log4perl-devel] PatternLayout question

2008-06-19 Thread Ronald Fischer
the layout, for instance that it says "ERROR" or "DEBUG" in the beginning. In the perldoc I didn't find any layout option which would let me indicate the log level. Does someone know whether it is possible to have the level printed when using PatternLayout? Regards Ronal