Class: Miniatura::Logger
- Inherits:
-
Object
- Object
- Miniatura::Logger
- Defined in:
- lib/miniatura/logger.rb
Instance Attribute Summary collapse
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
Instance Method Summary collapse
-
#initialize(options) ⇒ Logger
constructor
A new instance of Logger.
Constructor Details
#initialize(options) ⇒ Logger
Returns a new instance of Logger.
5 6 7 8 9 10 11 12 |
# File 'lib/miniatura/logger.rb', line 5 def initialize if .has_key? :logger @logger = [:logger] else @logger = Logger.new(STDOUT) @logger.level = Logger::INFO end end |
Instance Attribute Details
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
3 4 5 |
# File 'lib/miniatura/logger.rb', line 3 def logger @logger end |