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
1
vote
1 answer

How to Log an OutputDebugString via Log4Perl

it is possible to log all messages/levels with Log4Perl directly into an OutputDebugString (Windows System)? I have some modules which use already log4perl, but now i want to use these modules in an environment where all log messages are…
wreggyl
  • 93
  • 6
1
vote
1 answer

Catalyst: Log4perl and Apache

I host my Catalyst web application with Apache2 and ModPerl. The web application uses the Log4perl modul to generate logfiles. The problem is that only log entries are generated when the apache service is starting. Afterwards no new entries were…
theguest
  • 83
  • 4
1
vote
1 answer

How to configure log4perl.conf and a perl script so as to set correct permissions to log files?

I am using Log::Log4Perl for logging for my perl scripts. Everything is working great, except one thing; I have some common modules used by different scripts (and run by different users). I want those log files to have -rw-rw-rw- permissions, but…
Gogi
  • 1,695
  • 4
  • 23
  • 36
1
vote
2 answers

directing all output of a perl script to file and screen

I have a perl script that uses log4perl to log all output to screen and file. Problem is, certain output does not get directed to log4perl. Script - use strict; use warnings 'FATAL' => 'all'; use Log::Log4perl; use File::Find; my $log_conf =…
Quest Monger
  • 8,252
  • 11
  • 37
  • 43
1
vote
1 answer

Perl logfile named as timestamp issue

I'm writing a Log4perl logger and am using the localtime() function. The problem is, every time I call the module that reinstantiates the log4perl logger (for a different file) the localtime() will be different, making several different log files…
Phil Colson
  • 141
  • 3
  • 9
1
vote
2 answers

How to configure DateFileAppender for log4perl

I know how to configure the log4j so that the logs file gets rotated automatically with the date appended to the log file.? log4j.appender.schedulerService.Directory = ${logdir} log4j.appender.schedulerService.Prefix =…
Sriharsha
  • 2,373
  • 1
  • 16
  • 20
0
votes
4 answers

Parsing help in Perl

My (existing) perl files creates a Log file using Log4Perl in the following format [2011-11-21 08:50:22,406] States_Sync INFO Logger.pm:33 script starts [2011-11-21 08:50:22,610] States_Sync ERROR Logger.pm:36 Error occurred .... [2011-11-21…
KK99
  • 1,971
  • 7
  • 31
  • 64
0
votes
1 answer

Can a Log4perl filter access the Mapped Diagnostic Context?

I'm writting some Perl CGI scripts, and am using Log4perl to log to various files. I thought it may be useful to be able to trace a particular (or various) user's activities to a separate log file. I can put a hook into my session routine to stuff…
mvsjes2
  • 1,254
  • 2
  • 14
  • 23
0
votes
1 answer

LaTeXindent fail in VSCode: Can't locate Log/Log4perl.pm

I'm using LaTeX Workshop on VSCode to build pdf using LaTeX and I'm getting this error in the Output console when I save the .tex file. Formatting with command…
Fantantonio
  • 377
  • 4
  • 15
0
votes
1 answer

Deep cloning an object and Log4perl

I am using Storable's dclone() to create copies of various complex objects, which are self-logging with Log4perl loggers attached. Storable complains when it encounters the logger object because it contains CODE refs. When I turn on the option to…
i alarmed alien
  • 9,412
  • 3
  • 27
  • 40
0
votes
3 answers

Double Output in Log4perl Log File

I'm working on a new feature in an existing Perl codebase that will allow us to log the commands being sent to the database. I'm basing the solution off of Log4perl, which prevents me from having to reinvent several wheels. Unfortunately, I'm…
BlairHippo
  • 9,502
  • 10
  • 54
  • 78
0
votes
1 answer

Perl logging not working on long system call

I have a Perl script that is making a call to the AWS command line to upload a file to S3. It uses Log4Perl to log information about the upload. When the upload is small, a few seconds, the logging works fine -- but when the file is bigger and takes…
0
votes
1 answer

Perl: Pass on (Log4perl-)object to module

I came to appreciate Log4perl and I would like to make use of it across the main Perl-script and (several) modules. How do I implement it, preferably in an OO-fashion? Is it possible to hook up the logger-object (of the main script) with the object…
d-nnis
  • 71
  • 8
0
votes
1 answer

Log::Log4perl: one appender to the file in UTF-8 and another to the screen in CP866 on win32

I have Log::Log4perl config with two appenders to file and screen, like this: log4perl.logger.bc_log = INFO, bc_log, console log4perl.appender.bc_log = Log::Log4perl::Appender::File log4perl.appender.bc_log.filename =…
gapsf
  • 634
  • 4
  • 8
0
votes
4 answers

Getting command line options and their values

I want to log options and their arguments from user command after running the script. Consider this command: ./test.pl --ip localhost --id 400154 --class firstgrade ...and many other options and values. My desired output would be like this(by…
Matt Ston
  • 11
  • 2