Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Sys::Syslog behavior on Win32

by vleschuk (Initiate)
on Oct 25, 2012 at 13:50 UTC ( [id://1000874]=perlquestion: print w/replies, xml ) Need Help??

vleschuk has asked for the wisdom of the Perl Monks concerning the following question:

Dear Perlmonks,

especially the ones, who have an experience with (Strawberry) Perl on Windows,

could you, please, assist with the following issue: when I'm using Sys::Syslog module and sends multi-line message to the Windows' Event Log, it takes every line as a new message.

Considering that die is catched and logged, every line ends up living as a new message in Event Log, making it absolutely uncomfortable to read and troubleshoot things.

Any help would be appreciated.

Thanks.

Replies are listed 'Best First'.
Re: Sys::Syslog behavior on Win32
by Anonymous Monk on Oct 25, 2012 at 17:45 UTC
    ?? So don't do that? Log to console or tcp?
      Thank you - a very nice piece of advice =) Any suggestions how to make it work?

        Thank you - a very nice piece of advice =) Any suggestions how to make it work?

        Just do it, exactly as documented?

Re: Sys::Syslog behavior on Win32
by Anonymous Monk on Oct 26, 2012 at 12:33 UTC
    Found the issue was with Perl code logic. Sys::Syslog works as expected. The morality of the store: always narrow to the smallest code that cause the troubles. Thanks and sorry.
      Are you vleschuk and forgot to login or is AM is getting schizo again?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1000874]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2024-04-19 12:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found