Sha256: aba362e6a8de0e42ecbfa7e2ba2d446f0c35b67b51bb68fe5f52f4d8b240c67d

Contents?: true

Size: 1.47 KB

Versions: 37

Compression:

Stored size: 1.47 KB

Contents

# :stopdoc:
#
# Appenders are used to output log events to some logging destination. The
# same log event can be sent to multiple desitnations by associating
# multiple appenders with the logger.
#
# The following is a list of all the available appenders and a brief
# description of each. Please refer to the documentation for specific
# configuration options available for each.
#
#   Email         generates e-mail messages
#   File          writes to a regular file
#   Growl         outputs growl notifications (Mac OS X only)
#   IO            generic IO appender
#   RollingFile   writes to a file and rolls based on size or age
#   Stdout        appends to STDOUT
#   Stderr        appends to STDERR
#   StringIo      writes to a StringIO instance (useful for testing)
#   Syslog        outputs to syslogd (not available on all systems)
#
# And you can access these appenders:
#
#   Logging.appenders.email
#   Logging.appenders.file
#   Logging.appenders.growl
#   Logging.appenders.io
#   Logging.appenders.rolling_file
#   Logging.appenders.stdout
#   Logging.appenders.stderr
#   Logging.appenders.string_io
#   Logging.appenders.syslog
#

  require 'logging'

  log = Logging.logger['example']
  log.add_appenders(
      Logging.appenders.stdout,
      Logging.appenders.file('development.log')
  )
  log.level = :debug

  # These messages will be logged to both the log file and to STDOUT
  log.debug "a very nice little debug message"
  log.warn "this is your last warning"

# :startdoc:

Version data entries

37 entries across 37 versions & 8 rubygems

Version Path
vagrant-unbundled-1.8.1.1 vendor/bundle/ruby/2.3.0/gems/logging-1.8.2/examples/appenders.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/logging-1.8.2/examples/appenders.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/logging-1.8.2/examples/appenders.rb
TwP-logging-1.1.3 examples/appenders.rb
TwP-logging-1.1.4 examples/appenders.rb
TwP-logging-1.2.0 examples/appenders.rb
TwP-logging-1.2.2 examples/appenders.rb
pjstadig-logging-1.1.4.1 examples/appenders.rb
vagrant-tiktalik-0.0.3 vendor/bundle/ruby/2.0.0/gems/logging-1.8.1/examples/appenders.rb
logging-1.8.2 examples/appenders.rb
logging-1.8.1 examples/appenders.rb
logging-1.8.0 examples/appenders.rb
logging-1.7.2 examples/appenders.rb
logging-1.7.1 examples/appenders.rb
logging-1.7.0 examples/appenders.rb
logging-1.6.2 examples/appenders.rb
logging-1.6.1 examples/appenders.rb
logging-1.6.0 examples/appenders.rb
logging-1.5.2 examples/appenders.rb
logging-1.5.1 examples/appenders.rb