Parent

Cinch::Logger::Logger

This is an abstract class describing the logger interface. All loggers should inherit from this class and provide all necessary methods.

Note: You cannot initialize this class directly.

@abstract

Public Class Methods

new(output) click to toggle source
# File lib/cinch/logger/logger.rb, line 11
def initialize(output)
  raise
end

Public Instance Methods

debug(message) click to toggle source

This method can be used by plugins to log custom messages.

@param [String] message The message to log @return [void]

# File lib/cinch/logger/logger.rb, line 19
def debug(message)
  raise
end
log(message, kind = :generic) click to toggle source

This method is used by {debug} and {log_exception} to log messages, and also by the IRC parser to log incoming and outgoing messages. You should not have to call this.

@param [String] message The message to log @param [Symbol<:debug, :generic, :incoming, :outgoing>] kind

The kind of message to log

@return [void]

# File lib/cinch/logger/logger.rb, line 31
def log(message, kind = :generic)
  raise
end
log_exception(e) click to toggle source

This method is used for logging messages.

@param [Exception] e The exception to log @return [void]

# File lib/cinch/logger/logger.rb, line 39
def log_exception(e)
  raise
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.