Class God::Logger
In: lib/god/logger.rb
Parent: ::Logger

Methods

Constants

SYSLOG_EQUIVALENTS = {:fatal => :crit, :error => :err, :warn => :debug, :info => :debug, :debug => :debug}

Attributes

logs  [RW] 
syslog  [RW] 

Public Class methods

Instantiate a new Logger object

Public Instance methods

Disable capturing of log and return what was captured since capturing was enabled with Logger#start_capture

Returns String

If Logger.syslog is true then attempt to load the syslog bindings. If syslog cannot be loaded, then set Logger.syslog to false and continue.

Returns nothing

Log a message

  +watch+ is the String name of the Watch (may be nil if not Watch is applicable)
  +level+ is the log level [:debug|:info|:warn|:error|:fatal]
  +text+ is the String message

Returns nothing

Enable capturing of log

Returns nothing

Get all log output for a given Watch since a certain Time.

  +watch_name+ is the String name of the Watch
  +since+ is the Time since which to fetch log lines

Returns String

[Validate]