Sha256: 75d682a14c721b08ea8f7aa82ec59a67141539af14fe88dad9dbae004dfabf73

Contents?: true

Size: 453 Bytes

Versions: 9

Compression:

Stored size: 453 Bytes

Contents

#
# Logging provides a simple, default logger configured in the same manner as
# the default Ruby Logger class -- i.e. the output of the two will be the
# same. All log messags at "warn" or higher are printed to STDOUT; any
# message below the "warn" level are discarded.
#

  require 'logging'

  log = Logging.logger(STDOUT)
  log.level = :warn

  log.debug "this debug message will not be output by the logger"
  log.warn "this is your last warning"

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
TwP-logging-0.9.8.2 examples/simple.rb
TwP-logging-1.0.0 examples/simple.rb
TwP-logging-1.1.0 examples/simple.rb
TwP-logging-1.1.1 examples/simple.rb
TwP-logging-1.1.2 examples/simple.rb
logging-1.1.2 examples/simple.rb
logging-1.1.1 examples/simple.rb
logging-1.1.0 examples/simple.rb
logging-1.0.0 examples/simple.rb