Parent

Heel::Logger

wrapper around the rack common logger to open up the file and flush the logs this is invoked with a ‘use’ command in the Builder so a new instance of ‘Logger’ in created with each request, so we do all the heavy lifting in the meta class.

Public Class Methods

log() click to toggle source
    # File lib/heel/logger.rb, line 18
18:       def log
19:         # the log can get closed if daemonized, the at_exit will close it.
20:         if @log.closed? then
21:           @log = File.open(@log_file, "a")
22:         end
23:         @log
24:       end
log_file=(lf) click to toggle source
    # File lib/heel/logger.rb, line 26
26:       def log_file=(lf)
27:         @log_file = lf
28:         @log = File.open(@log_file, "a")
29:         at_exit { @log.close unless @log.closed? }
30:       end
new(app) click to toggle source
    # File lib/heel/logger.rb, line 33
33:     def initialize(app)
34:       super(app)
35:     end

Public Instance Methods

<<(str) click to toggle source
    # File lib/heel/logger.rb, line 37
37:     def <<(str)
38:       Heel::Logger.log.write( str )
39:       Heel::Logger.log.flush
40:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.