Difference between revisions of "Plugin:LogFile"

From collectd Wiki
Jump to: navigation, search
(Created initial page.)
 
(Added "List of Plugins" template.)
Line 1: Line 1:
= Description =
+
{{List of Plugins}}
 +
== Description ==
  
 
The <em>LogFile</em> plugin receives log messages from the daemon and writes them to a text file.
 
The <em>LogFile</em> plugin receives log messages from the daemon and writes them to a text file.
Line 5: Line 6:
 
In order for other plugins to be able to report errors and warnings during initialization, the <em>LogFile</em> plugin should be loaded as one of the first plugins, if not as <em>the</em> first plugin. This means that its <code>LoadPlugin</code> line should be one of the first lines in the configuration file.
 
In order for other plugins to be able to report errors and warnings during initialization, the <em>LogFile</em> plugin should be loaded as one of the first plugins, if not as <em>the</em> first plugin. This means that its <code>LoadPlugin</code> line should be one of the first lines in the configuration file.
  
= Synopsis =
+
== Synopsis ==
  
 
  LoadPlugin "logfile"
 
  LoadPlugin "logfile"
Line 14: Line 15:
 
  </Plugin>
 
  </Plugin>
  
= Dependencies =
+
== Dependencies ==
  
 
* <em>none</em>
 
* <em>none</em>
  
 
[[Category:Plugins]]
 
[[Category:Plugins]]

Revision as of 10:43, 4 March 2009

Template:List of Plugins

Description

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.

Synopsis

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

Dependencies

  • none