Class: Baha::Log
- Inherits:
-
Object
- Object
- Baha::Log
- Defined in:
- lib/baha/log.rb
Defined Under Namespace
Classes: Formatter
Constant Summary collapse
- LEVELS =
{ :debug => Logger::DEBUG, :info => Logger::INFO, :warn => Logger::WARN, :error => Logger::ERROR, :fatal => Logger::FATAL }
Class Attribute Summary collapse
-
.io ⇒ Object
readonly
Returns the value of attribute io.
-
.level ⇒ Object
Returns the value of attribute level.
-
.logfile ⇒ Object
Returns the value of attribute logfile.
Instance Attribute Summary collapse
-
#progname ⇒ Object
readonly
Returns the value of attribute progname.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(progname) ⇒ Log
constructor
A new instance of Log.
Constructor Details
#initialize(progname) ⇒ Log
Returns a new instance of Log.
65 66 67 |
# File 'lib/baha/log.rb', line 65 def initialize(progname) @progname = progname end |
Class Attribute Details
.io ⇒ Object (readonly)
Returns the value of attribute io.
32 33 34 |
# File 'lib/baha/log.rb', line 32 def io @io end |
.level ⇒ Object
Returns the value of attribute level.
32 33 34 |
# File 'lib/baha/log.rb', line 32 def level @level end |
.logfile ⇒ Object
Returns the value of attribute logfile.
32 33 34 |
# File 'lib/baha/log.rb', line 32 def logfile @logfile end |
Instance Attribute Details
#progname ⇒ Object (readonly)
Returns the value of attribute progname.
63 64 65 |
# File 'lib/baha/log.rb', line 63 def progname @progname end |