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

Version Path
logging-1.8.0 data/logging.rb
logging-1.7.2 data/logging.rb
logging-1.7.1 data/logging.rb
logging-1.7.0 data/logging.rb
logging-1.6.2 data/logging.rb
logging-1.6.1 data/logging.rb
logging-1.6.0 data/logging.rb
logging-1.5.2 data/logging.rb
logging-1.5.1 data/logging.rb
logging-1.5.0 data/logging.rb
logging-1.4.3 data/logging.rb
sgeorgi-logging-1.4.2 data/logging.rb
logging-1.4.2 data/logging.rb
logging-1.4.1 data/logging.rb
logging-1.4.0 data/logging.rb
redcar-0.3.1dev lib/logging/data/logging.rb
redcar-0.3.0dev lib/logging/data/logging.rb
logging-1.3.0 data/logging.rb
redcar-0.2.9dev lib/logging/data/logging.rb
pjstadig-logging-1.1.4.2 data/logging.rb