Sha256: 4801ae70bce7e271422b9468ebf8fa7795e04a1db4059052854c46d115196ee5
Contents?: true
Size: 373 Bytes
Versions: 8
Compression:
Stored size: 373 Bytes
Contents
module Mack module Logging # :nodoc: class BasicLayout < ::Logging::Layout # :nodoc: def format(event) obj = format_obj(event.data) sprintf("%*s:\t[%s]\t%s\n", ::Logging::MAX_LEVEL_LENGTH, ::Logging::LNAMES[event.level], Time.now.strftime(configatron.mack.log.time_format), obj) end end # BasicLayout end # Logging end # Mack
Version data entries
8 entries across 8 versions & 1 rubygems