lumberjack
lumberjack copied to clipboard
A simple, powerful, and very fast logging utility that can be a drop in replacement for Logger. Provides support for automatically rolling log files, formatting log output, and tagging log entries.
When flushing the buffer to a stream it is possible that the call to `stream.write` can block (https://github.com/bdurand/lumberjack/blob/04b44186433223d110dc95374851e26b888a8855/lib/lumberjack/device/writer.rb#L111) such as if the disk is loaded or if the file is...
After upgrading from Rails 3.2 to Rails 5.1 recently, I noticed that my log files no longer included the tags specified in `config.log_tags`, even though my logger configuration hasn't changed...
Lumberjack claims that it "can be a drop in replacement for Logger or ActiveSupport::BufferedLogger" -- but it doesn't give any instructions on how to use it as a drop-in replacement...
In the most recent version 1.0.13 the join method, which I have been using is no longer supported. Was that removed on purpose?
Require `spec_helper` automatically in `*_spec.rb`. I think that it's a [DRY](https://en.wikipedia.org/wiki/Don't_repeat_yourself) way.
First the warning: /home/douglas/.rbenv/versions/1.9.3-debian/gems/gems/lumberjack-1.0.9/lib/lumberjack/device/size_rolling_log_file.rb:41: warning: assigned but unused variable - e I've made this go away with this line 42 inserted: e.send :display does something with it even if it...
Would like you to review this and see if the implementation is sound. - allows for multiple devices for writing messages - added basic tests - added usage to readme
If the folder where the logs are contained does not have write permissions then lumberjack will silently block when trying to roll the logs.
The following code results in a `NameError`: ``` ruby require 'lumberjack' Lumberjack::Device::SizeRollingLogFile.new('test.log').flush ``` Backtrace: from /home/dirkbolte/.rvm/gems/ruby-1.9.3-p392/gems/lumberjack-1.0.4/lib/lumberjack/device/size_rolling_log_file.rb:40:in `>' from /home/dirkbolte/.rvm/gems/ruby-1.9.3-p392/gems/lumberjack-1.0.4/lib/lumberjack/device/size_rolling_log_file.rb:40:in `roll_file?' from /home/dirkbolte/.rvm/gems/ruby-1.9.3-p392/gems/lumberjack-1.0.4/lib/lumberjack/device/rolling_log_file.rb:46:in `before_flush' from /home/dirkbolte/.rvm/gems/ruby-1.9.3-p392/gems/lumberjack-1.0.4/lib/lumberjack/device/writer.rb:95:in `block in flush' from :10:in...
I'm currently using lumberjack as a resque logger with daily log rotation. When the log file needs to be rotated, the workers tend to hang indefinitely. Checking the process with...