]> begriffs open source - ai-pg/blob - full-docs/txt/event-log-registration.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / event-log-registration.txt
1
2 18.12. Registering Event Log on Windows #
3
4    To register a Windows event log library with the operating system,
5    issue this command:
6 regsvr32 pgsql_library_directory/pgevent.dll
7
8    This creates registry entries used by the event viewer, under the
9    default event source named PostgreSQL.
10
11    To specify a different event source name (see event_source), use the /n
12    and /i options:
13 regsvr32 /n /i:event_source_name pgsql_library_directory/pgevent.dll
14
15    To unregister the event log library from the operating system, issue
16    this command:
17 regsvr32 /u [/i:event_source_name] pgsql_library_directory/pgevent.dll
18
19 Note
20
21    To enable event logging in the database server, modify log_destination
22    to include eventlog in postgresql.conf.