Revision 0888f3f5
Added by Marc Dequènes over 14 years ago
- ID 0888f3f503f12b2b914c28d83d5db18b0cfc56bd
lib/cyborghood/base/logger.rb | ||
---|---|---|
end
|
||
|
||
def log_to_file(filename)
|
||
file_outputter = Log4r::FileOutputter.new(filename, :filename => filename)
|
||
file_outputter = Log4r::FileOutputter.new(filename, :filename => filename, :trunc => false)
|
||
file_outputter.formatter = @default_formatter
|
||
self.outputters << file_outputter
|
||
end
|
Also available in: Unified diff
[fix] don't truncate log file at startup