Class

BufferedLogger

Extends:

Includes:

Inspired by the buffered logger idea by Ezra

Modules
Severity
Constants
MAX_BUFFER_SIZE
Public Attributes
auto_flushing
buffer
level
Public Methods
add
auto_flushing= Set the auto-flush period. Set to true to flush after every log message, to an integer to flush every N messages, or to false, nil, or zero to never auto-flush. If you turn auto-flushing off, be sure to regularly flush the log yourself — it will eat up memory until you do.
close
flush
new
set_non_blocking_io
silence Silences the logger for the duration of the block.
Protected Methods
auto_flush
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.