Class: Dumbcli::Logger
- Inherits:
-
Logger
- Object
- Logger
- Dumbcli::Logger
- Defined in:
- lib/dumbcli/logger.rb
Constant Summary collapse
- CLEAR =
"\e[0m"
- COLORS =
{ 'INFO' => "\e[32m", # green 'WARN' => "\e[33m", # yellow 'ERROR' => "\e[35m", # magenta 'FATAL' => "\e[31m", # red }
Instance Method Summary collapse
- #format_message(severity, datetime, progname, msg) ⇒ Object
-
#initialize(logdev, shift_age = 0, shift_size = 1048576) ⇒ Logger
constructor
A new instance of Logger.
Constructor Details
#initialize(logdev, shift_age = 0, shift_size = 1048576) ⇒ Logger
Returns a new instance of Logger.
13 14 15 16 |
# File 'lib/dumbcli/logger.rb', line 13 def initialize(logdev, shift_age = 0, shift_size = 1048576) super @level = INFO end |