Hi Log4perl enthusiasts,
the maintenance release Log::Log4perl 1.43 has just been pushed to CPAN
with the following changes:
1.43 (2014/03/16)
*(ms) Added %m{indent} to indent multi-line messages according to
the PatternLayout (inspired by Wolfgang Pecho)
*(ms) [rt.c
Hi,
On Windows, one Log4perl test fails using File::Temp 1.23. If I
install File::Temp 1.22 the test passes.
On my Debian box, Log4perl passes tests just fine.
t/053Resurrect.t . Deep recursion on subroutine
"Log::Log4perl::Resurrector::resurrector_fh" at
C:\Perl\cpan\build\Log-Log4perl-1.40-
Dear Log4perl enthusiasts,
the 1.36 release just went to CPAN with the following fixes:
1.36 (2012/02/21)
*(ms) [rt.cpan.org #74833] Reini Urban fixed "defined @array" for
perl 5.16
*(ms) [rt.cpan.org #74836] Cope with Carp's questionable decision to
ad
December 7, 2011 9:19 AM
Subject: Re: [log4perl-devel] log4perl buffering with semi persistent scripts
>You didn't mention the email appender that you are using, specific
>solutions would require looking into the appender's documentation and
>figure out if it provides a met
>You didn't mention the email appender that you are using, specific
>solutions would require looking into the appender's documentation and
>figure out if it provides a method to flush buffered/pending messages.
>If that's available, then I'd recommend encapsulating request handling
>into a functio
On Tue, 6 Dec 2011, Danny Dev wrote:
I think perhaps what I need is to enable buffering at the start of each
request, and disable it at the end of the request, is there some way to do
this or does someone have another solution?
You didn't mention the email appender that you are using, specific
I'm using log4perl in FCGI scripts that are semi-persistent, they go up and
down depending on load.
I have an appender that sends email and I'd like it to be buffered. However if
I set it to buffered the emails are never sent, except sometimes when the
process is killed. If I disable bufferin
On Tue, 25 Oct 2011, Mike Schilli wrote:
> the delay on this ... this snippet doesn't compile for me
> because $cfg isn't defined
Gah, I had a missing module, never mind. The wrapper registration seems
to work, though, here's the output of the script below:
2011/10/26 08:44:32 l4pm 54> Whoa
On Wed, 12 Oct 2011, J Mash wrote:
I've recently encountered an odd issue while using Moose to create
a wrapper class for Log::Log4perl that results in the logger's
category somehow being returned as 'Eval.Closure', despite that I've
registered the wrapper class as indicated in the documentation
Greetings,
I've recently encountered an odd issue while using Moose to create a wrapper
class for Log::Log4perl that results in the logger's category somehow being
returned as 'Eval.Closure', despite that I've registered the wrapper class
as indicated in the documentation. I'm not sure if this is
Hi Log4perl enthusiasts,
Log4perl 1.31 just has been released to CPAN. It fixes only one
annoying test problem on Windows:
1.31 (2010/10/27)
* (ms) Fixed the number of skipped tests for Windows for previous
fix of [RT 60665].
Just didn't want to sit on it any longer, enjoy!
-- M
On Fri, 9 Apr 2010, Josh803316 wrote:
> wn edificationwhat is the real difference between the filter
> method and the sub method or are they basically the same?
They're the same, just different notations.
-- Mike
Mike Schilli
m...@perlmeister.com
---
Thanks, that worked like a charm! Just for my own edificationwhat is
the real difference between the filter method and the sub method or are they
basically the same?
On Fri, Apr 9, 2010 at 1:20 AM, Mike Schilli wrote:
> On Fri, 9 Apr 2010, Josh803316 wrote:
>
> $logger->trace( {filter => \
On Fri, 9 Apr 2010, Josh803316 wrote:
> $logger->trace( {filter => \&Data::Dumper::Dumper, value => $name},
> undef, $TRACE, undef, undef); So my question is, how can I log the
> value so it looks like $name instead of $VAR1 in the saved log?
You can pass a reference to a subroutine to Log4perl's
I often use Data::Dumper like this:
print Data::Dumepr->Dump([$name],['name']);
# Which will dump with the variable $name = { } instead of $VAR1 = {
... }
I use log4perl and Data::Dumper like this (from the log4perl faq)
$logger->trace( {filter => \&Data::Dumper::Dumper, value => $name},
Hi Log4perl enthusiasts,
Log::Log4perl 1.27 has just been released to CPAN. The following changes
went into this release:
1.27 (2010/02/07)
*(ms) ***WARNING: This might break backward compatibility
with some wrapper classes.
[RT 52913] Fixed categor
On Wed, 20 Jan 2010, Trevor Little wrote:
> I'm adding logging to a high-traffic mod_perl website and am worried
> about the performance penalties of writing stuff to disc on every
> request.
It depends on your traffic numbers. I've found that a file appender
works quite well up to 1000 req
Hi,
I'm adding logging to a high-traffic mod_perl website and am worried
about the performance penalties of writing stuff to disc on every request.
In production, we'd probably only be logging a few lines per request. I'm
wondering what the common usage of log4perl is like in these situati
Hi Log4perl enthusiasts,
Log4perl 1.26 has just been released on github:
http://github.com/mschilli/log4perl/tarball/rel_126
Changes in this release:
1.26 (2009/11/22)
* (ms) [RT 50495] Perl code in the config file is now evaluated/
compiled after the configuration parser has
On Mon, 12 Oct 2009, Rindfrey, Klaus (EXT) wrote:
we use Log4perl 1.21 (with Win XP, Active perl 5.10), which works
fine. Now i tried 1.25: The test "059Prototyped" causes an error
(unfortunately, the contents of the error box I appended is in
german).
That's no problem at all, I'm originally
Hi,
we use Log4perl 1.21 (with Win XP, Active perl 5.10), which works fine.
Now i tried 1.25: The test "059Prototyped" causes an error (unfortunately, the
contents of the error box I appended is in german).
Test output:
###
Hi Log4perl enthusiasts,
release 1.25 just went out to log4perl.com, here's the changes:
1.25 (2009/09/27)
* (ms) Appender::File is now closing (or sysclosing) the file
on file_close() instead of just undef'ing the handle.
* (ms) Added l4p-tmpl helper script to help wh
On Fri, 11 Sep 2009, Terry Kummell wrote:
> Do we need to license log4perl in order to use it in our product?
Hi Terry,
Log4perl is provided under the same license as perl itself:
http://dev.perl.org/licenses/
Hope that helps!
-- Mike
Mike Schilli
m...@perlmeister.com
-
Do we need to license log4perl in order to use it in our product?
Regards,
Terry
--
Terry Kummell
Aldon Computer Group
6001 Shellmound St. Suite 600
Emeryville, CA 94608
(510) 285-8527
---
On Mon, 6 Jul 2009, Oladipo, Segun wrote:
> Need to install Log4perl but stuck behind a firewall. Obtained
> information that it is possible to download the zipped file to a local
> repository and install using ppm.
The PPM is for Activestate Perl only, and it wasn't updated with the
last releas
Hello,
Need to install Log4perl but stuck behind a firewall.
Obtained information that it is possible to download the zipped file to a local
repository and install using ppm.
The question is I can't seem to find Log-Log4perl.ppd anywhere as the following
link seems to be inactive.
http://log4pe
IEHANDLE {
>my $class = shift;
>bless [], $class;
> }
>
> sub PRINT {
>my $self = shift;
>
>$Log::Log4perl::caller_depth++;
>get_logger()->info(@_);
>$Log::Log4perl::caller_depth--;
> }
>
> 1;
> #####
pth++;
get_logger()->info(@_);
$Log::Log4perl::caller_depth--;
}
1;
#
Thanks
Richard
> -Original Message-
> From: Mike Schilli [mailto:m...@perlmeister.com]
> Sent: 20 May 2009 22:25
> To: Richard Burton
> Cc: log4perl-devel@lists.sourceforge.net
>
.
-- Mike
Mike Schilli
m...@perlmeister.com
>
> Does that help?
>
> Richard
>
>> -Original Message-
>> From: Mike Schilli [mailto:m...@perlmeister.com]
>> Sent: 20 May 2009 22:25
>> To: Richard Burton
>> Cc: log4perl-devel@lists.sourcefo
that I can build it in to my code; I don't have a specific example?
Does that help?
Richard
> -Original Message-
> From: Mike Schilli [mailto:m...@perlmeister.com]
> Sent: 20 May 2009 22:25
> To: Richard Burton
> Cc: log4perl-devel@lists.sourceforge.net
> Subje
On Wed, 20 May 2009, Robert Jacobson wrote:
> Here's what I did: 1. Make a file "trapper.pl". It's basically the
> same as the example, except the Log4perl init, which uses a config
> file (in this case, with a SIGHUP to re-read it):
Looks ok at first glance, doesn't it produce the expected out
Richard Burton richard-at-atomwide.com |log4perl_sourceforge| wrote:
> Hi all
>
> I am trying to capture unhandled exceptions that are sent to STDERR,
> e.g. for example the following could would give such an error
[snip]
>
> I can catch this using stealth as loggers outlined in
>
> http://searc
On Wed, 20 May 2009, Richard Burton wrote:
> I can catch this using stealth as loggers outlined in
> http://search.cpan.org/~mschilli/Log-Log4perl/lib/Log/Log4perl/FAQ.pm#So
> me_module_prints_messages_to_STDERR._How_can_I_funnel_them_to_Log::Log4p
> erl?
>
> but the example assumes you are using
Hi all
I am trying to capture unhandled exceptions that are sent to STDERR,
e.g. for example the following could would give such an error
my $test = 'foo';
if ($test == 55) {
}
gives
Argument "foo" isn't numeric in numeric eq (==) at
I can catch this using stealth as loggers outl
On Mon, 26 Jan 2009, Manoj Wanzare wrote:
> 3) DEBUG mode should have an option of either writing to Screen
> or debuglog file or both
I presume that 'debug mode' is a mode your application is in, so it
would be available in a variable of the program? If so, you can attach
a filter t
Dear All,
I am a new user of log4perl and to this mailing list. I am working on a perl
project - want to incorporate Log4perl as main logging framework. The
requirement is as below:
1) Wrapper over Log4perl
2) System-wide Logging to File & Screen in INFO mode
3) DEBUG mode s
Mike Schilli wrote:
> I have one suggestion: Since -d or -v are used by some scripts for
> different purposes, how about letting the script determine which options
> are covered?
Done.
http://search.cpan.org/~ctilmes/Log-Log4perl-CommandLine-0.03/
I've already seen a few things I want to change,
On Mon, 4 Aug 2008, Curt Tilmes wrote:
> I attended your talk at OSCON about Log4perl (which I enjoyed
> immensely, thank you!),
Hi Curt,
thanks, glad you liked it ;).
> and asked a question about command line options rather than config
> files. I've thought about it a bit since then, and put
Here's a nice new Log4perl extension that just made it to CPAN:
-- Mike
Mike Schilli
[EMAIL PROTECTED]
-- Forwarded message --
From: Curt Tilmes <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Log4perl command line options
Date: Mon, 4 Aug 2008 16:27:27 -0400
I attended your
Hello,
We have an issue with log4perl installation on Windows. For some
security restrictions on Internet connections prm program can not access
log4perl web page and the command
Prm> repository add http://log4perl.sourceforge.net/ppm
does not work. Is there any way to deploy this package manually
On Tue, 13 May 2008, Erskine, Thomas (IT) wrote:
> While warp_message is indeed an appender setting, if you have two
> appenders, one with warp_message=0 and one without, then you'll get
> the mess I got: the one with will work fine and will have access to
> extra args separately, but the one with
Hi Mike.
While warp_message is indeed an appender setting, if you have two
appenders, one with warp_message=0 and one without, then you'll get the
mess I got: the one with will work fine and will have access to extra
args separately, but the one without will mash the args into a single
message.
On Tue, 13 May 2008, Erskine, Thomas (IT) wrote:
> I do indeed want
>
> $logger->log($level, $msg, $key)
>
> to be dealt with differently depending on the appender it ends up on.
> That's part of the point of having different appenders; they ought to be
> independant. The problem is that it
On Fri, 9 May 2008, Erskine, Thomas (IT) wrote:
> The other logs an event to Netcool (specifying warp_message=0) and it
> works fine. It allows you to call log like:
>
> $logger->log($level, $msg, $key)
>
> so that you can specify a Netcool alert key.
>
> Then comes the problem: I made a conf
(forwarded with permission)
Hi Mike.
I've been enjoying Log::Log4perl (using 1.13). Thank-you. Until I
decided to write a pair of appenders.
One of them is a fancy file appender and it works nicely.
The other logs an event to Netcool (specifying warp_message=0) and it
works fine. It allows y
On Wed, 6 Feb 2008, Kevin M. Goess wrote:
> If you want to send "info" messages too, then do this, changing ERROR
> to INFO:
>
> log4perl.rootLogger=INFO, LOGFILE
>
> That will send all messages of level "info", "warn", "error" and "fatal"
> to your LOGFILE.
... and just in case: if you wan
Fernando, if I understand your question correctly, this line that you have:
log4perl.rootLogger=ERROR, LOGFILE
tells log4perl to send all messages whose log level is "error" or
"fatal" to your LOGFILE appender. If you want to send "info" messages
too, then do this, changing ERROR to INFO
Hi all,
probably you can give some help on this topic.
I'm using the Log-Log4perl-1.14 and I've initialize the following log.conffile:
[root@ test]# cat log.conf
# A simple root logger with a Log::Log4perl::Appender::File
# file appende
Mike Schilli wrote:
> I see -- the recommended ways of synchronizing access to an appender are
> listed in the Log4perl FAQ:
>
> http://log4perl.sourceforge.net/d/Log/Log4perl/FAQ.html#23804
Something I learned recently that's apropos that I've been meaning to
mention: on Linux, you don't hav
PM
> To: Strahan, Bob
> Cc: Mike Schilli; log4perl-devel@lists.sourceforge.net
> Subject: RE: [log4perl-devel] log4perl causing perl process to die (fwd)
>
> On Sun, 4 Nov 2007, Strahan, Bob wrote:
>
> > We do use the 'close_after_write' option... As I mentioned, ther
ovember 04, 2007 3:55 PM
To: Strahan, Bob
Cc: Mike Schilli; log4perl-devel@lists.sourceforge.net
Subject: RE: [log4perl-devel] log4perl causing perl process to die (fwd)
On Sun, 4 Nov 2007, Strahan, Bob wrote:
> We do use the 'close_after_write' option... As I mentioned, there ar
"Cannot write to '$self->{filename}': $!";
> while (1) {
>last if open $fh, "$self->{mode}$self->{filename}" ;
> }
>
>
>
>
>
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
day, November 03, 2007 6:32 PM
To: Mike Schilli
Cc: log4perl-devel@lists.sourceforge.net
Subject: Re: [log4perl-devel] log4perl causing perl process to die (fwd)
On Fri, 2 Nov 2007, Bob Strahan wrote:
> However, it seems that if certain filesystem operations are
> performed on the logfile it can
On Fri, 2 Nov 2007, Bob Strahan wrote:
> However, it seems that if certain filesystem operations are
> performed on the logfile it can cause the logger to execute die(),
> causing my service to die, with the following error
>
> Cannot write to 'D:/Program Files (x86)/My App/logs/logfile.txt':
> Pe
Forwarded with permission:
-- Forwarded message -- From: "Strahan, Bob"
<[EMAIL PROTECTED]> To: "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> Subject: log4perl causing perl process to die
Date: Fri, 2 Nov 2007 20:05:37 +
Hi
I am using log4perl in a Win32 service that needs to run
Log4perl enthusiasts,
I'll be giving a presentation on Log4perl at the San Francisco Perl
Mongers on 9/25, stop by if you're in the area:
http://sf.pm.org/weblog
See you there!
-- Mike
Mike Schilli
[EMAIL PROTECTED]
-
From: Mike Schilli [mailto:[EMAIL PROTECTED]
> On Thu, 16 Aug 2007, Lee Goddard wrote:
>
> > Sometimes I need to just see the logging from a specific
> > method/subroutine/function.
> >
> > I realize I can change the log levels within that block of code, but
> > it would be convenient to be able t
Eric [mailto:[EMAIL PROTECTED]
Sent: 16 August 2007 16:49
To: Lee Goddard; log4perl-devel@lists.sourceforge.net
Subject: RE: [log4perl-devel] Log4perl Categories
Lee,
I use a custom logging class that exports a get_logger($category) that
automatically prepends the namespace hierarchy to the category p
: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lee
Goddard
Sent: Thursday, August 16, 2007 4:21 AM
To: log4perl-devel@lists.sourceforge.net
Subject: [log4perl-devel] Log4perl Categories
Sometimes I need to just see the logging from a specific
method/subroutine/function.
I realize I can
On Thu, 16 Aug 2007, Lee Goddard wrote:
> Sometimes I need to just see the logging from a specific
> method/subroutine/function.
>
> I realize I can change the log levels within that block of code, but
> it would be convenient to be able to say
> log4perl.category.bar.twix.eat to just see the logg
Sometimes I need to just see the logging from a specific
method/subroutine/function.
I realize I can change the log levels within that block of code, but it
would be convenient to be able to say log4perl.category.bar.twix.eat to
just see the logging from Bar::Twix's 'eat' method. Would it be a
On Tue, 7 Aug 2007, H. Meyer wrote:
> We've been able to "fix" the issue for our local setup. The following
> appender caused the segfaults:
>
> log4perl.appender.STDERR=Log::Dispatch::Screen
> log4perl.appender.STDERR.stderr=1
> log4perl.appender.STDERR.layout=Log::Log4perl::Layout::PatternLayou
Mike Schilli wrote:
> On Mon, 6 Aug 2007, H. Meyer wrote:
>> I've just encountered very frequent segmentation faults when trying to
>> use Log4Perl in a perl web application running inside of apache 1.3.37
>> and mod_perl 1.29. I am using perl 5.8.8 and the latest Log4Perl
>> version from CPAN.
>
On Mon, 6 Aug 2007, H. Meyer wrote:
> I've just encountered very frequent segmentation faults when trying to
> use Log4Perl in a perl web application running inside of apache 1.3.37
> and mod_perl 1.29. I am using perl 5.8.8 and the latest Log4Perl
> version from CPAN.
Core dumps are unrelated to
Hi,
I've just encountered very frequent segmentation faults when trying to
use Log4Perl in a perl web application running inside of apache 1.3.37
and mod_perl 1.29. I am using perl 5.8.8 and the latest Log4Perl version
from CPAN.
Have any problems with such a setup been reported before? (I wasn't
Can anybody shine any light on how I could use l4p with TT?
Thanks.
-Eric.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - -
This message is intended only for the personal and confidential use of the
designated recipient(s) named above. If you are not th
66 matches
Mail list logo