Sha256: e46834f4902d3adb69404bf85234f70eda666f76ee27e153eac3c77064a4d9e8
Contents?: true
Size: 981 Bytes
Versions: 27
Compression:
Stored size: 981 Bytes
Contents
module Logging module Layouts # Accessor / Factory for the Basic layout. # def basic( *args ) return ::Logging::Layouts::Basic if args.empty? ::Logging::Layouts::Basic.new(*args) end # Accessor / Factory for the Pattern layout. # def pattern( *args ) return ::Logging::Layouts::Pattern if args.empty? ::Logging::Layouts::Pattern.new(*args) end # Accessor for the Parseable layout. # def parseable ::Logging::Layouts::Parseable end # Factory for the Parseable layout using JSON formatting. # def json( *args ) ::Logging::Layouts::Parseable.json(*args) end # Factory for the Parseable layout using YAML formatting. # def yaml( *args ) ::Logging::Layouts::Parseable.yaml(*args) end extend self end # module Layouts end # module Logging %w[basic parseable pattern]. each do |fn| require ::Logging.libpath('logging', 'layouts', fn) end # EOF
Version data entries
27 entries across 27 versions & 4 rubygems