Questions tagged [log4perl]

Log::Log4perl is a Perl module that lets you remote-control and fine-tune the logging behaviour of your system from the outside.

Log::Log4perl lets you remote-control and fine-tune the logging behaviour of your system from the outside. It implements the widely popular (Java-based) log4j logging package in pure Perl.

111 questions
0
votes
2 answers

Where is the Log4perl documentation for configuration?

I am new to the Perl and while doing with my new CR I stuck at the Perl code which is using Log4perl package. Already developed code is using this package and in the configuration file of this package has this…
kishore
  • 167
  • 1
  • 2
  • 7
0
votes
1 answer

Log4perl weird errors using file appender

I'm trying to add and remove a simple file appender to a Log4perl logger, but warnings are generated and nothing is printed. Here is my code: use strict; use warnings; use Log::Log4perl qw(:easy); Log::Log4perl->easy_init($DEBUG); use…
Nate Glenn
  • 6,455
  • 8
  • 52
  • 95
0
votes
2 answers

Log4perl: new message in the same line without prefix

Each Log4perl message starts with a new line: my $log = Log::Log4perl->get_logger("log"); $log->info("start:"); $log->info("10"); $log->info("20"); $log->info("30"); result: [2012/07/06 13:12:27] INFO log - start: [2012/07/06 13:12:27] INFO log -…
vxopdx
  • 129
  • 1
  • 8
0
votes
1 answer

How can I replace a pattern before logging while using Log::Log4perl in Perl?

I am trying to replace a pattern in the log message before it gets logged on to the file. The logger uses the Perl Module Log::Log4perl. I see that there is only a Filter option available in this module, which does not solve my problem. Actually,…
MDT
  • 23
  • 2
0
votes
1 answer

How can I change the timezone of Log4perl timestamps

My web server is in a timezone different from mine and I am using this pattern layout in the Log4perl config: log4perl.appender.LOGFILE.layout=PatternLayout log4perl.appender.LOGFILE.layout.ConversionPattern=%d | %p | %l | %c | %m%n The %d produces…
noswonky
  • 3
  • 1
-1
votes
1 answer

Log4perl missing init

I wrote a class A where I define and initialize a rootlogger my $conf = q( log4perl.rootLogger = ERROR, LOGFILE log4perl.appender.LOGFILE.filename = /var/log/Application.log log4perl.appender.LOGFILE =…
kdjantzen
  • 1
  • 1
1 2 3 4 5 6 7
8