module StartHer::Logger

Public Instance Methods

development() click to toggle source
# File lib/start_her/logger.rb, line 11
def development
  LogStashLogger.new(type: :stdout, formatter: ::Logger::Formatter)
end
instance() click to toggle source
# File lib/start_her/logger.rb, line 7
def instance
  send(StartHer.env)
end
production() click to toggle source
# 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