Skip Menu |

This queue is for tickets about the Logger-Simple CPAN distribution.

Report information
The Basics
Id: 124705
Status: new
Priority: 0/
Queue: Logger-Simple

People
Owner: Nobody in particular
Requestors: simon.didier [...] outlook.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: different log files
Date: Wed, 7 Mar 2018 04:58:29 +0000
To: "bug-Logger-Simple [...] rt.cpan.org" <bug-Logger-Simple [...] rt.cpan.org>
From: Didier Simon <simon.didier [...] outlook.com>
Hello, Just to let you know that creating two different Logger::Simple objects in the same program won't work. The last object instantiated will get all the log messages... Anyway, thank you for your time. Best regards, Didier $ cat loggerTest.pl #!/usr/bin/env perl use strict; use warnings; use utf8; use 5.10.0; use Logger::Simple; my $log1=Logger::Simple->new(LOG=>"log1"); my $log2=Logger::Simple->new(LOG=>"log2"); $log1->write("write to log1"); $log2->write("write to log2"); 05:52:02 did MacBook-Pro-de-Didier /Users/did/pgm $ cat log1 05:52:16 did MacBook-Pro-de-Didier /Users/did/pgm $ cat log2 /Users/did/pgm/loggerTest.pl : [Wed Mar 7 05:44:03 2018] write to log1 /Users/did/pgm/loggerTest.pl : [Wed Mar 7 05:44:03 2018] write to log2 05:52:20 did MacBook-Pro-de-Didier /Users/did/pgm $