class Rootage::Logger

‘Logger` is a interface for system logger implementations.

Public Class Methods

of(type) click to toggle source

Return logger class of the type.

# File lib/rootage/log.rb, line 54
def self.of(type)
  @logger[type]
end
register(type, logger_class) click to toggle source

Register the logger class with the type.

# File lib/rootage/log.rb, line 59
def self.register(type, logger_class)
  @logger[type] = logger_class
end

Public Instance Methods

debug(msg, pos=caller(1).first, pid=Process.pid) click to toggle source

Log the debug message.

# File lib/rootage/log.rb, line 94
def debug(msg, pos=caller(1).first, pid=Process.pid)
  raise NotImplementedError
end
error(msg, pos=caller(1).first, pid=Process.pid) click to toggle source

Log the error message.

# File lib/rootage/log.rb, line 79
def error(msg, pos=caller(1).first, pid=Process.pid)
  raise NotImplementedError
end
fatal(msg, pos=caller(1).first, pid=Process.pid) click to toggle source

Log the fatal message.

# File lib/rootage/log.rb, line 74
def fatal(msg, pos=caller(1).first, pid=Process.pid)
  raise NotImplementedError
end
info(msg, pos=caller(1).first, pid=Process.pid) click to toggle source

Log the info message.

# File lib/rootage/log.rb, line 89
def info(msg, pos=caller(1).first, pid=Process.pid)
  raise NotImplementedError
end
level() click to toggle source

Return the log level.

# File lib/rootage/log.rb, line 64
def level
  raise NotImplementedError
end
level=(level) click to toggle source

Set the log level.

# File lib/rootage/log.rb, line 69
def level=(level)
  raise NotImplementedError
end
queued?() click to toggle source

Return true if some messages are queued.

# File lib/rootage/log.rb, line 104
def queued?
  raise NotImplementedError
end
terminate() click to toggle source

Terminate the logger.

# File lib/rootage/log.rb, line 99
def terminate
  raise NotImplementedError
end
warn(msg, pos=caller(1).first, pid=Process.pid) click to toggle source

Log the warn message.

# File lib/rootage/log.rb, line 84
def warn(msg, pos=caller(1).first, pid=Process.pid)
  raise NotImplementedError
end