Sha256: d466f43cbf2ab4c4b138603fe75061e243556a86f347b16de5e01ea3e4902104
Contents?: true
Size: 1008 Bytes
Versions: 9
Compression:
Stored size: 1008 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 Logging.libpath { require 'logging/layouts/basic' require 'logging/layouts/parseable' require 'logging/layouts/pattern' } # EOF
Version data entries
9 entries across 9 versions & 2 rubygems