Class: Stackster::StacksterLogger
- Inherits:
-
Object
- Object
- Stackster::StacksterLogger
- Extended by:
- Forwardable
- Defined in:
- lib/stackster/logger.rb
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ StacksterLogger
constructor
A new instance of StacksterLogger.
Constructor Details
#initialize(args = {}) ⇒ StacksterLogger
Returns a new instance of StacksterLogger.
10 11 12 13 |
# File 'lib/stackster/logger.rb', line 10 def initialize(args = {}) @log_level = args[:log_level] ||= 'info' @logger = args[:logger] ||= new_logger(args) end |