- Inheritance
-
< Object
- Included Modules
- Severity
Inspired by the buffered logger idea by Ezra
Classes & Modules
Constants
Name |
|
Description |
MAX_BUFFER_SIZE |
= 1000 |
|
Attributes
Name |
Visibility |
R/W |
Description |
auto_flushing |
public |
R |
|
level |
public |
RW |
|
Methods
Class
Visibility |
Signature |
public |
new (log, level = DEBUG) |
Instance
Class Method Detail
new(log, level = DEBUG)
Instance Method Detail
add(severity, message = nil, progname = nil, &block)
auto_flushing=(period)
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()
silence(temporary_level = ERROR) {|self| ...}
Silences the logger for the duration of the block.
auto_flush()
buffer()
clear_buffer()