Sha256: 5da86ef9bb552ec4e7bbea028c3005e37a270780f261df8a74684dc52dfc827a
Contents?: true
Size: 712 Bytes
Versions: 60
Compression:
Stored size: 712 Bytes
Contents
Logging.configure { pre_config { levels %w[DEB INF PRT WRN ERR FAT] format_as :inspect } logger('A::B::C') { level 'DEB' additive false trace false appenders %w[stderr logfile] } logger('yourlogger') { level 'INF' appenders %w[stderr logfile] } appender('stderr') { type 'Stderr' level 'DEB' layout { type 'Basic' format_as :string } } appender('logfile') { type 'File' level 'DEB' filename 'tmp/temp.log' truncate true layout { type 'Pattern' date_method 'to_s' pattern '[%d] %l %c : %m\n' } } } # logging configuration
Version data entries
60 entries across 60 versions & 10 rubygems