Sha256: 09635dd255e0191fef36bc2ad8a589de3e6d2b802efdc383e47cb6c2c9c5e071
Contents?: true
Size: 658 Bytes
Versions: 1
Compression:
Stored size: 658 Bytes
Contents
require 'legion/logging/logger' module Legion module Extensions module Logger module Runners module Logger def self.to_stdout(payload) logger = Legion::Logging::Logger.new.setup if payload[:level] == 'warn' logger.warn(payload[:message]) elsif payload[:level] == 'error' logger.error(payload[:message]) else logger.info(payload[:message]) end { status: 'success', message: payload[:message], level: payload[:level] } end def self.to_file(payload); end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lex-logger-0.1.0 | lib/legion/extensions/logger/runners/logger.rb |