Difference between revisions of "Plugin:LogFile"

From collectd Wiki
Jump to: navigation, search
m (Added DEFAULTSORT magic word.)
(Relicensed to MIT license.)
Line 5: Line 5:
   | Status={{supported}}
   | Status={{supported}}
   | FirstVersion={{Version|3.9}}
   | FirstVersion={{Version|3.9}}
   | Copyright=''2007'' Sebastian Harl<br />''2007–2008'' Florian octo Forster
   | Copyright=''2007'' Sebastian Harl<br />''2007–2008'' [[User:Octo|Florian Forster]]
   | License={{GPLv2}}
   | License={{MIT License}}
   | Manpage={{Manpage|collectd.conf|5|plugin_logfile}}
   | Manpage={{Manpage|collectd.conf|5|plugin_logfile}}

Latest revision as of 09:34, 21 May 2015

LogFile plugin
Type: log
Callbacks: config, log, notification
Status: supported
First version: 3.9
Copyright: 2007 Sebastian Harl
2007–2008 Florian Forster
License: MIT license
Manpage: collectd.conf(5)
List of Plugins

The LogFile plugin receives log messages from the daemon and writes them to a text file.

In order for other plugins to be able to report errors and warnings during initialization, the LogFile plugin should be loaded as one of the first plugins, if not as the first plugin. This means that its LoadPlugin line should be one of the first lines in the configuration file.


LoadPlugin "logfile"
<Plugin "logfile">
  LogLevel "info"
  File "/var/log/collectd.log"
  Timestamp true


  • none

See also