start page | rating of books | rating of authors | reviews | copyrights

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: 19.3 Win32::ChangeNotification Chapter 19
Win32 Modules and Extensions
Next: 19.5 Win32::File
 

19.4 Win32::Eventlog

This module makes the Windows NT event log accessible to your Perl programs. It allows you to create new records, read records, and create backup logfiles. The new constructor opens a server's event log as an object.

$log = Win32::EventLog->new(
source
, [
server
]);
This function opens an event log and returns an object reference. source specifies the name of the source event, and server specifies the name of the server ( local is assumed if no server name is given).

Many of the methods for this module require a reference to an empty variable as an argument. This is where the return value of the method will be placed, whether it is a hash or a scalar. The following methods can be used on event log objects:


Previous: 19.3 Win32::ChangeNotification Perl in a Nutshell Next: 19.5 Win32::File
19.3 Win32::ChangeNotification Book Index 19.5 Win32::File