Skip Menu |

This queue is for tickets about the UniLog CPAN distribution.

Report information
The Basics
Id: 22611
Status: open
Priority: 0/
Queue: UniLog

People
Owner: Nobody in particular
Requestors: mpapet [...] yahoo.com
Cc:
AdminCc:

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



Subject: Bareword "LOG_INFO" etc. Not Allowed In Strict Mode
t/plugin_tests.......Bareword "LOG_DEBUG" not allowed while "strict subs" in use at C:\download\q2psmtpd-0.32\qpsmtpd-0.32\blib\lib/Qpsmtpd.pm line 155. Bareword "LOG_PID" not allowed while "strict subs" in use at C:\download\q2psmtp d-0.32\qpsmtpd-0.32\blib\lib/Qpsmtpd.pm line 10. Bareword "LOG_CONS" not allowed while "strict subs" in use at C:\download\q2psmt pd-0.32\qpsmtpd-0.32\blib\lib/Qpsmtpd.pm line 10. Bareword "LOG_NDELAY" not allowed while "strict subs" in use at C:\download\q2ps mtpd-0.32\qpsmtpd-0.32\blib\lib/Qpsmtpd.pm line 10. Bareword "LOG_USER" not allowed while "strict subs" in use at C:\download\q2psmt pd-0.32\qpsmtpd-0.32\blib\lib/Qpsmtpd.pm line 10. Bareword "LOG_INFO" not allowed while "strict subs" in use at C:\download\q2psmt pd-0.32\qpsmtpd-0.32\blib\lib/Qpsmtpd.pm line 10. It appears impossible to use this module in strict mode. Is it?
Show quoted text
> It appears impossible to use this module in strict mode. Is it?
Yes it is. I have tested UniLog in strict mode. Can you show me your use command? UniLog is not exporting anything by default.
Subject: Re: [rt.cpan.org #22611] Bareword "LOG_INFO" etc. Not Allowed In Strict Mode
Date: Thu, 26 Oct 2006 13:54:32 -0700 (PDT)
To: bug-UniLog [...] rt.cpan.org
From: Michael Papet <mpapet [...] yahoo.com>
if ($^O eq 'MSWin32') { use Unilog qw(:levels syslog); $LoggerWin32=UniLog->new(Ident => "Qpsmtpd", # The log source identification Options => LOG_PID|LOG_CONS|LOG_NDELAY, # Logger options, see "man 3 syslog" Facility => LOG_USER, # Logger facility, see "man 3 syslog" Level => LOG_INFO, # The log level StdErr => 1) # Log messages also to STDERR or die "Can not create the logger: $!"; }else{} I'm using it 1:1 from the cpan.org page. How do I export the variables in strict mode? Michael --- via RT <bug-UniLog@rt.cpan.org> wrote: Show quoted text
> > <URL: > http://rt.cpan.org/Ticket/Display.html?id=22611 > >
> > It appears impossible to use this module in strict
> mode. Is it? > Yes it is. I have tested UniLog in strict mode. > Can you show me your use command? UniLog is not > exporting anything by > default. > > >
Show quoted text
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
On Thu Oct 26 16:54:52 2006, mpapet@yahoo.com wrote: Show quoted text
> if ($^O eq 'MSWin32') {
This line is definitely superfluous, as UniLog making this check itself Can you try this code for me? [begin] use strict; use UniLog qw(:levels :options :facilities syslog); my $LoggerWin32=UniLog->new(Ident => "Qpsmtpd", Options => LOG_PID|LOG_CONS|LOG_NDELAY, Facility => LOG_USER, Level => LOG_INFO, StdErr => 1) or die "Can not create the logger: $!"; [end]
Subject: Re: [rt.cpan.org #22611] Bareword "LOG_INFO" etc. Not Allowed In Strict Mode
Date: Fri, 3 Nov 2006 15:00:40 -0800 (PST)
To: bug-UniLog [...] rt.cpan.org
From: Michael Papet <mpapet [...] yahoo.com>
This works in Win32! Can you tell me why this works and the other doesn't? my $LoggerWin32=UniLog->new(Ident => "Qpsmtpd", Options => LOG_PID|LOG_CONS|LOG_NDELAY, Facility => LOG_USER, Level => LOG_INFO, StdErr => 1) or die "Can not create the logger: $!"; --- via RT <bug-UniLog@rt.cpan.org> wrote: Show quoted text
> > <URL: > http://rt.cpan.org/Ticket/Display.html?id=22611 > > > On Thu Oct 26 16:54:52 2006, mpapet@yahoo.com wrote: >
> > if ($^O eq 'MSWin32') {
> This line is definitely superfluous, as UniLog > making this check itself > > Can you try this code for me? > [begin] > use strict; > > use UniLog qw(:levels :options :facilities syslog); > > my $LoggerWin32=UniLog->new(Ident => "Qpsmtpd", > Options => > LOG_PID|LOG_CONS|LOG_NDELAY, > Facility => LOG_USER, > Level => LOG_INFO, > StdErr => 1) > or die "Can not create the logger: $!"; > [end] >
Show quoted text
__________________________________________________________________________________________ Check out the New Yahoo! Mail - Fire up a more powerful email and get things done faster. (http://advision.webevents.yahoo.com/mailbeta)