class MonoLogger

MonoLogger

A subclass of Ruby's stdlib Logger with all the mutex and logrotation stuff
ripped out.

Constants

VERSION

Public Class Methods

new(logdev, shift_age=nil, shift_size=nil) click to toggle source

Synopsis

MonoLogger.new(STDOUT)
MonoLogger.new(filename)

Args

logdev

The log device. This is a filename (String) or IO object (typically STDOUT, STDERR, or an open file).

shift_age

ignored in MonoLogger

shift_size

ignored in MonoLogger

Description

Create an instance.

Calls superclass method
# File lib/mono_logger.rb, line 30
def initialize(logdev, shift_age=nil, shift_size=nil)
  super(nil)

  if logdev
    @logdev = LocklessLogDevice.new(logdev)
  end
end