Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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.

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
Node Status?
node history
Node Type: perlquestion [id://1000874]
Approved by Corion
help
Chatterbox?
[erix]: yeah, I ask for the text (I don't see signatures)
[Discipulus]: dear brother karl has "Furthermore I consider that Donald Trump must be impeached as soon as possible" in his sig
[erix]: ah, thanks Discipulus
[1nickt]: erix perhaps you could kindly point out your technique to roho and everyone will be happy.
[Discipulus]: but i'm also animalist, so i' hirted by 1nickt's sig: The way forward always starts with a mammal test... grin..
[erix]: I might if I did remember. It's probably somewhere in the site docs
[uhClem]: I don't favor that sort of thing around here but the place for our politics is wherever we live.
[uhClem]: And besides, the objection to it was off-topic.
[Discipulus]: 1nickt hide signature is a positive action; i think is not a solution here

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (12)
As of 2017-06-22 12:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (519 votes). Check out past polls.