ex_winlog v0.1.1 ExWinlog
Logger
backend for the Windows Event Log
Usage
Add it to your list of Logger
backends in your config.exs
file like this:
config :logger,
backends: [:console, {ExWinlog, "My Event Source Name"}]
Registering Event Sources
The ExWinlog
backend requires that the event source, "My Event Source Name"
in the example, is registered with Windows Event Viewer.
Use ExWinlog.register/1
and ExWinlog.deregister/1
, while running the application as an administrator, to manage the sources.
This should typically be done once when installing or uninstalling the application.
Link to this section Summary
Functions
De-registers an existing event source with Windows Event Viewer. Must be run as an administrator.
Registers a new event source with Windows Event Viewer. Must be run as an administrator.
Link to this section Functions
deregister(event_source_name)
De-registers an existing event source with Windows Event Viewer. Must be run as an administrator.
register(event_source_name)
Registers a new event source with Windows Event Viewer. Must be run as an administrator.