vmraj has asked for the wisdom of the Perl Monks concerning the following question:
Any pointers on how to resolve this issue ?#!/usr/local/bin/perl use strict; use warnings; use Log::Log4perl qw(:easy); my $logfile = '/home/y/logs/mylogger.log'; Log::Log4perl->easy_init({ level => $DEBUG, file => ">>$logfile", layout => "%d %F{1}-%L: %m%n" }); my $i = 1; while($i <= 50) { DEBUG "This is a log message"; sleep(10); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Log4perl is not writing into the log file when log file contents are cleared
by gam3 (Curate) on Jan 05, 2010 at 18:40 UTC | |
|
Re: Log4perl is not writing into the log file when log file contents are cleared
by MidLifeXis (Monsignor) on Jan 05, 2010 at 18:41 UTC | |
|
Re: Log4perl is not writing into the log file when log file contents are cleared
by Garp (Acolyte) on Jan 05, 2010 at 22:01 UTC |