Subject: | Win32 Error Message |
Hi again,
I get the following error in the event log.
The description for Event ID ( 0 ) in Source ( MSSQL-Detector[5636] )
cannot be found. The local computer may not have the necessary registry
information or message DLL files to display messages from a remote
computer. The following information is part of the event: Should not be
logged to STDERR
The code I'm using is from our last exchange.
##Win32/Linux Logging. Should generate log data on either platform
if ($^O eq 'MSWin32') { # Crappy Administrative Tools > Event Viewer >
Applications
our $tattletale=UniLog->new(Ident => "Detector",
# Options => LOG_PID|LOG_CONS|LOG_NDELAY,
Facility => LOG_USER, Level => LOG_INFO, #
StdErr => 1)
or die "Can't create the tattletale: $!";
}
#Test/verify unilog is working
our $tattletale->Message(LOG_NOTICE, "Should not be logged to STDERR");
What am I missing?
Also, I've added the win32 code that works as an annotation to your
documentation page. Please consider updating the page and closing the
last bug.