Module: StartHer::Logger
- Defined in:
- lib/start_her/logger.rb
Class Method Summary collapse
- .development ⇒ Object (also: test)
- .instance ⇒ Object
- .production ⇒ Object (also: staging)
Class Method Details
.development ⇒ Object Also known as: test
11 12 13 |
# File 'lib/start_her/logger.rb', line 11 def development LogStashLogger.new(type: :stdout, formatter: ::Logger::Formatter) end |
.instance ⇒ Object
7 8 9 |
# File 'lib/start_her/logger.rb', line 7 def instance send(StartHer.env) end |
.production ⇒ Object Also known as: staging
15 16 17 18 19 |
# File 'lib/start_her/logger.rb', line 15 def production LogStashLogger.new(type: :stdout, formatter: :json).tap do |logger| logger.level = ::Logger::INFO end end |