Class: RelatonIso::Configuration
- Inherits:
-
Object
- Object
- RelatonIso::Configuration
- Defined in:
- lib/relaton_iso/config.rb
Instance Attribute Summary collapse
-
#logger ⇒ Object
Returns the value of attribute logger.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
17 18 19 20 21 22 23 24 |
# File 'lib/relaton_iso/config.rb', line 17 def initialize @logger = ::Logger.new $stderr @logger.level = ::Logger::WARN @logger.progname = "relaton-iso" @logger.formatter = proc do |_severity, _datetime, progname, msg| "[#{progname}] #{msg}\n" end end |
Instance Attribute Details
#logger ⇒ Object
Returns the value of attribute logger.
15 16 17 |
# File 'lib/relaton_iso/config.rb', line 15 def logger @logger end |