Skip to content

Instantly share code, notes, and snippets.

@hobodave
Created December 3, 2014 20:45
Show Gist options
  • Save hobodave/680569c241c038473e95 to your computer and use it in GitHub Desktop.
Save hobodave/680569c241c038473e95 to your computer and use it in GitHub Desktop.
[12] pry(main)> logger = ActiveSupport::BufferedLogger.new('foo.log', :shift_age => false, :shift_size => false)
=> #<ActiveSupport::BufferedLogger:0x007fe3f8af73d0
@log=
#<Logger:0x007fe3f8af7308
@default_formatter=#<Logger::Formatter:0x007fe3f8af7268 @datetime_format=nil>,
@formatter=#<Logger::SimpleFormatter:0x007fe3f8af7010 @datetime_format=nil>,
@level={:shift_age=>false, :shift_size=>false},
@logdev=
#<Logger::LogDevice:0x007fe3f8af71f0
@dev=#<File:foo.log>,
@filename="foo.log",
@mutex=#<Logger::LogDevice::LogDeviceMutex:0x007fe3f8af71a0 @mon_count=0, @mon_mutex=#<Mutex:0x007fe3f8af7100>, @mon_owner=nil>,
@shift_age=0,
@shift_size=1048576>,
@progname=nil>,
@log_dest="foo.log">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment