Look into Win32::EventLog::Message by Dave Roth. Cheers, /LG
/Luiz George Ramsey Barreiros Analista Assistente de Informatica GEPRO NRT 1-RJ/SETAR Banco do Brasil S.A. Para: "John_Ramsden" <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> cc: Enviado Por: Assunto: Windows Event Log Source DLL [EMAIL PROTECTED] e.com 23-10-2003 18:32 CET Executive Summary ----------------- I'd be very grateful if anyone can point me to info on setting up a System Event Message Text Template Table for my own event source. Waffle ------ I have a system app that runs as a service and needs to log system event messages when it starts and stops. I've been using the Win32::EventLog module. But the Report() method of this expects an Event ID, which I gather Windows uses as an index into a message template table. The trouble is the documentation for EventLog doesn't explain how to set up this blasted table, and incredibly it doesn't even include an example of sending an event message. It just mentions DLLs in passing, and I've seen other documentation that mentions Registry entries. (As I only have a couple of messages, I'd be quite happy to tweak the Registry if all else fails.) In case anyone recognises it, this is the message that appears in the Application Log each time my code calls Report(), with Event ID zero or undef: The description for Event ID ( 0 ) in Source ( wdtrapd ) 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: Watchdog process for 'wdtrapd' has aborted.. Cheers John Ramsden Sagitta - Contract Developer Tel: +44 (0)239244023 9244 5000 Mob: n/a Fax: +44 (0)23 9249 8853 Web: www.sagitta-ps.com ************************************************************************************************************************************************** SAGITTA NEWS = Sagitta WINS "Most Innovative Project of the Year" at the Computing Awards 2003! SAGITTA NETSEMINAR = "Disaster Recovery on a Budget" online event on November 6th 2003 at 10:00am for 45 minutes. Register and find out more at www.sagitta-ps.com/events/future_netseminars.htm ************************************************************************************************************************************************** This message is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please accept our apology. We should be obliged if you would telephone the sender on the above number or email them by return. Thank you. _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs