Sha256: f3d22ce6a410c75bc482af222c61929f4bb150b2c6b6d62e925f39936e79318f
Contents?: true
Size: 610 Bytes
Versions: 11
Compression:
Stored size: 610 Bytes
Contents
# A reference logger example class SimpleLogger < Marvin::LoggingHandler def setup_logging logger.warn "Setting up the client" end def teardown_logging logger.warn "Tearing down the logger" end def log_incoming(server, nick, target, message) logger.fatal "[INCOMING] #{server} (#{target}) #{nick}: #{message}" end def log_outgoing(server, nick, target, message) logger.fatal "[OUTGOING] #{server} (#{target}) #{nick}: #{message}" end def log_message(server, nick, target, message) logger.fatal "[MESSAGE] #{server} (#{target}) #{nick}: #{message}" end end
Version data entries
11 entries across 11 versions & 2 rubygems