In: log4r/base.rb
Parent: Object

Some common functions


comma_split, comma_split, comma_split, comma_split,
Public Class methods
validate_level(level, depth=0) src

Raises ArgumentError if level argument is an invalid level. Depth specifies how many trace entries to remove.

valid_level?(lev) src
decode_bool(hash, symbol, default) src

Shortcut for decoding 'true', 'false', true, false or nil into a bool from a hash parameter. E.g., it looks for true/false values for the keys 'symbol' and :symbol.

comma_split(string) src

Splits comma-delimited lists with arbitrary \s padding