Sha256: 6b7e39ec4e39e2a2ba2b5afadceb3c989f9a3699cdd1cb518baf674065a9f1f8

Contents?: true

Size: 479 Bytes

Versions: 26

Compression:

Stored size: 479 Bytes

Contents

# :stopdoc:
#
# 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"

# :startdoc:

Version data entries

26 entries across 26 versions & 5 rubygems

Version Path
TwP-logging-1.1.3 examples/simple.rb
TwP-logging-1.1.4 examples/simple.rb
TwP-logging-1.2.0 examples/simple.rb
TwP-logging-1.2.2 examples/simple.rb
pjstadig-logging-1.1.4.1 examples/simple.rb
logging-1.6.1 examples/simple.rb
logging-1.6.0 examples/simple.rb
logging-1.5.2 examples/simple.rb
logging-1.5.1 examples/simple.rb
logging-1.5.0 examples/simple.rb
logging-1.4.3 examples/simple.rb
sgeorgi-logging-1.4.2 examples/simple.rb
logging-1.4.2 examples/simple.rb
logging-1.4.1 examples/simple.rb
logging-1.4.0 examples/simple.rb
redcar-0.3.1dev lib/logging/examples/simple.rb
redcar-0.3.0dev lib/logging/examples/simple.rb
logging-1.3.0 examples/simple.rb
redcar-0.2.9dev lib/logging/examples/simple.rb
pjstadig-logging-1.1.4.2 examples/simple.rb