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

Version Path
Sutto-marvin-0.3.2 handlers/simple_logger.rb
Sutto-marvin-0.3.3 handlers/simple_logger.rb
Sutto-marvin-0.3.4 handlers/simple_logger.rb
Sutto-marvin-0.4.0 handlers/simple_logger.rb
Sutto-marvin-0.8.0.0 handlers/simple_logger.rb
Sutto-marvin-0.8.0.1 handlers/simple_logger.rb
marvin-0.8.2 handlers/simple_logger.rb
marvin-0.8.1 handlers/simple_logger.rb
marvin-0.8.0.2 handlers/simple_logger.rb
marvin-0.8.0.1 handlers/simple_logger.rb
marvin-0.8.0.0 handlers/simple_logger.rb