Difference between revisions of "Talk:InspIRCd"

From ArchWiki
Jump to navigation Jump to search
Line 1: Line 1:
 
== Logging ==
 
== Logging ==
  
The supplied rc.d script logs standard server messages to {{Filename|/var/log/inspircd/startup.log}}. Using the following is a un-recommended method of logging all user messages:
+
The supplied rc.d script logs standard server messages to {{ic|/var/log/inspircd/startup.log}}. 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">
 
   <log method="file" type="USERINPUT USEROUTPUT" level="default" target="/var/log/inspircd/chat.log">
Line 9: Line 9:
 
   <log method="file" type="m_chatlog" level="default" target="/var/log/inspircd/chat.log">
 
   <log method="file" type="m_chatlog" level="default" target="/var/log/inspircd/chat.log">
  
However, this caused duplicate logging between {{Filename|startup.log}} and {{Filename|chat.log}}, so I chose to disable the startup log by replacing line 15 in {{Filename|/etc/rc.d/inspircd}} with:
+
However, this caused duplicate logging between {{ic|startup.log}} and {{ic|chat.log}}, so I chose to disable the startup log by replacing line 15 in {{ic|/etc/rc.d/inspircd}} with:
  
 
   su -s /bin/sh -c '/usr/sbin/inspircd --logfile /dev/null --config /etc/inspircd/inspircd.conf' 'inspircd' > /dev/null
 
   su -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.
 
This was required because InspIRCd would '''not start''' if --logfile has not been set.

Revision as of 20:26, 13 February 2012

Logging

The supplied rc.d script logs standard server messages to /var/log/inspircd/startup.log. 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 startup.log and chat.log, so I chose to disable the startup log by replacing line 15 in /etc/rc.d/inspircd with:

 su -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.