Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Sys::Syslog behavior on Win32

by vleschuk (Initiate)
on Oct 25, 2012 at 13:50 UTC ( #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.

Comment on Sys::Syslog behavior on Win32
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
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? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2014-07-23 21:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (152 votes), past polls