To create new wiki account, please join us on #znc at Libera.Chat and ask admins to create a wiki account for you. You can say thanks to spambots for this inconvenience.

Adminlog: Difference between revisions

From ZNC
Jump to navigation Jump to search
Created page with "{{DISPLAYTITLE:adminlog}} {{Core Module | version = 0.076}} This module writes a log to <code><datadir>/znc.log</code> (most likely <code>~/.znc/znc.log</code>) or syslog. It..."
 
KindOne (talk | contribs)
Update the default log path.
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
{{Core Module | version = 0.076}}
{{Core Module | version = 0.076}}


This module writes a log to <code><datadir>/znc.log</code> (most likely <code>~/.znc/znc.log</code>) or syslog.
This module writes a log to <code><datadir>/moddata/adminlog/znc.log</code> (most likely <code>~/.znc/moddata/adminlog/znc.log</code>) or syslog.
It logs when users connect or disconnect from IRC and when they log in. Failed logins are logged, too.
It logs when users connect or disconnect from IRC and when they log in. Failed logins are logged, too.


== Usage ==
== Usage ==


{{Module arguments}}
{{Module arguments
| type = global
}}


=== Commands ===
=== Commands ===

Latest revision as of 07:11, 9 October 2013


This module writes a log to <datadir>/moddata/adminlog/znc.log (most likely ~/.znc/moddata/adminlog/znc.log) or syslog. It logs when users connect or disconnect from IRC and when they log in. Failed logins are logged, too.

Usage

Arguments

This global module takes no arguments.

Read loading modules to learn more about loading modules.

Commands

target

The target command can be used to set the logging method:

  • Only log to znc.log:
/msg *adminlog target file
  • Only log to syslog:
/msg *adminlog target syslog
  • Log to both, syslog and znc.log:
/msg *adminlog target both

The settings are saved and reloaded across restarts.