Class: God::Logger

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

### Methods

finish_capture load_syslog log new start_capture watch_log_since

### Constants

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

### Attributes

logs | [RW] |
syslog | [RW] |

### Public Class methods

new()

Instantiate a new Logger object

### Public Instance methods

finish_capture()

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

Returns String

load_syslog()

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(watch, level, text)

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

start_capture()

Enable capturing of log

Returns nothing

watch_log_since(watch_name, since)

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]