Class: RubyRunHTMLWriter
- Defined in:
- lib/rubyrun/rubyrun_html_writer__.rb
Defined Under Namespace
Classes: RubyRunHTMLDevice
Instance Method Summary collapse
- #format_message(severity, timestamp, progname, msg) ⇒ Object
- #info(msg, &blk) ⇒ Object
-
#initialize(filename, header, shift_age = 0, shift_size = 1048576) ⇒ RubyRunHTMLWriter
constructor
A new instance of RubyRunHTMLWriter.
Constructor Details
#initialize(filename, header, shift_age = 0, shift_size = 1048576) ⇒ RubyRunHTMLWriter
Returns a new instance of RubyRunHTMLWriter.
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/rubyrun/rubyrun_html_writer__.rb', line 24 def initialize(filename, header, shift_age = 0, shift_size = 1048576) @progname = nil @level = DEBUG @default_formatter = Formatter.new @formatter = nil @logdev = nil @filename = filename @header = header @shift_age = shift_age @shift_size = shift_size if @filename @logdev = RubyRunHTMLDevice.new(@filename, @header, :shift_age => @shift_age, :shift_size => @shift_size) end end |
Instance Method Details
#format_message(severity, timestamp, progname, msg) ⇒ Object
40 41 42 |
# File 'lib/rubyrun/rubyrun_html_writer__.rb', line 40 def (severity, , progname, msg) msg end |
#info(msg, &blk) ⇒ Object
44 45 46 47 48 49 50 51 |
# File 'lib/rubyrun/rubyrun_html_writer__.rb', line 44 def info(msg, &blk) begin super(msg, &blk) rescue @logdev = RubyRunHTMLDevice.new(@filename, @header, :shift_age => @shift_age, :shift_size => @shift_size) super(msg, &blk) end end |