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
vagrant-unbundled-1.8.1.1 vendor/bundle/ruby/2.3.0/gems/logging-1.8.2/data/logging.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/logging-1.8.2/data/logging.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/logging-1.8.2/data/logging.rb
TwP-logging-0.9.7 data/logging.rb
TwP-logging-0.9.8.1 data/logging.rb
TwP-logging-0.9.8.2 data/logging.rb
TwP-logging-0.9.8 data/logging.rb
TwP-logging-1.0.0 data/logging.rb
TwP-logging-1.1.0 data/logging.rb
TwP-logging-1.1.1 data/logging.rb
TwP-logging-1.1.2 data/logging.rb
TwP-logging-1.1.3 data/logging.rb
TwP-logging-1.1.4 data/logging.rb
TwP-logging-1.2.0 data/logging.rb
TwP-logging-1.2.2 data/logging.rb
ottobar-logging-0.9.5.1 data/logging.rb
pjstadig-logging-1.1.4.1 data/logging.rb
vagrant-tiktalik-0.0.3 vendor/bundle/ruby/2.0.0/gems/logging-1.8.1/data/logging.rb
logging-1.8.2 data/logging.rb
logging-1.8.1 data/logging.rb