Class: RelatonBib::Configuration
Constant Summary collapse
- PROGNAME =
"relaton-bib".freeze
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_bib/config.rb', line 17 def initialize @logger = ::Logger.new $stderr @logger.level = ::Logger::WARN @logger.progname = self.class::PROGNAME @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_bib/config.rb', line 15 def logger @logger end |