PostgreSQL 9.4.1 Documentation | |||
---|---|---|---|
Prev | Up | Chapter 17. Server Setup and Operation | Next |
17.11. RegisteringEvent Log onWindows
To register aWindowsevent log library with the operating system, issue this command:
regsvr32pgsql_library_directory/pgevent.dll
This creates registry entries used by the event viewer, under the default event source namedPostgreSQL.
To specify a different event source name (seeevent_source), use the/n and/i options:
regsvr32 /n /i:event_source_namepgsql_library_directory/pgevent.dll
To unregister theevent log library from the operating system, issue this command:
regsvr32 /u [/i:event_source_name]pgsql_library_directory/pgevent.dll
Note: To enable event logging in the database server, modifylog_destination to includeeventlog inpostgresql.conf.