Class | Heel::Logger |
In: |
lib/heel/logger.rb
lib/heel/logger.rb |
Parent: | ::Rack::CommonLogger |
# 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
# 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
# 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
# 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