Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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 browsing the Monastery: (5)
As of 2015-07-05 16:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls