Class Ariel::Log
In: lib/ariel/log.rb
Parent: Object

Very simple Log class. By default outputs to stdout and ignored messages below :info level. Should probably get rid of the usage of Singleton as it’s used very little, with the classes eigenclass/singleton class used mostly for the same purpose. Use Log.set_level to lower/raise the logging level.

Methods

Included Modules

Singleton

Constants

SEVERITY = {:debug=>0, :info=>1, :warn=>2, :error=>3}

Public Class methods

Not intended to be used directly, preferred to use the methods corresponding to different serverity levels.

Level defaults to :debug if $DEBUG is set and :info if not.

Sends all output to a file called debug.log in the current directory.

Set the log level to the given key from the SEVERITY constant.

[Validate]