Talk:InspIRCd

From ArchWiki
Revision as of 21:21, 4 October 2011 by Gladstone (Talk | contribs) (Logging)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Logging

The supplied rc.d script logs standard server messages to Template:Filename. Using the following is a un-recommended method of logging all user messages:

 <log method="file" type="USERINPUT USEROUTPUT" level="default" target="/var/log/inspircd/chat.log">

In my experience however, this method did not work at all, instead requiring a third-party module;

 <log method="file" type="m_chatlog" level="default" target="/var/log/inspircd/chat.log">

However, this caused duplicate logging between Template:Filename and Template:Filename, so I chose to disable the startup log by replacing line 15 in Template:Filename with:

 u -s /bin/sh -c '/usr/sbin/inspircd --logfile /dev/null --config /etc/inspircd/inspircd.conf' 'inspircd' > /dev/null

This was required because InspIRCd would not start if --logfile has not been set.