Skip to content

Instantly share code, notes, and snippets.

@phobos182
Created June 6, 2012 22:31
Show Gist options
  • Save phobos182/2885236 to your computer and use it in GitHub Desktop.
Save phobos182/2885236 to your computer and use it in GitHub Desktop.
irb(main):001:0> require "filewatch/tail"; FileWatch::Tail.new
=> #<FileWatch::Tail:0x478dabf1 @opts={:sincedb_write_interval=>10, :sincedb_path=>"/root/.sincedb", :stat_interval=>1, :discover_interval=>5, :exclude=>[]}, @lastwarn={}, @sincedb_last_write=0, @files={}, @statcache={}, @buffers={}, @watch=#<FileWatch::Watch:0x2d83e895 @exclude=[], @watching=[], @logger=#<Logger:0x2f1aa58b @logdev=#<Logger::LogDevice:0x7e6a60d5 @shift_age=nil, @filename=nil, @dev=#<IO:fd 2>, @mutex=#<Logger::LogDevice::LogDeviceMutex:0x79fb80c9 @mon_count=0, @mon_mutex=#<Mutex:0x6ec44aaf>, @mon_owner=nil>, @shift_size=nil>, @formatter=nil, @progname=nil, @default_formatter=#<Logger::Formatter:0x19035ff9 @datetime_format=nil>, @level=1>, @files={}>, @logger=#<Logger:0x2f1aa58b @logdev=#<Logger::LogDevice:0x7e6a60d5 @shift_age=nil, @filename=nil, @dev=#<IO:fd 2>, @mutex=#<Logger::LogDevice::LogDeviceMutex:0x79fb80c9 @mon_count=0, @mon_mutex=#<Mutex:0x6ec44aaf>, @mon_owner=nil>, @shift_size=nil>, @formatter=nil, @progname=nil, @default_formatter=#<Logger::Formatter:0x19035ff9 @datetime_format=nil>, @level=1>, @sincedb={[27394819, 0, 2050]=>203042, [27394820, 0, 2050]=>404364, [27394264, 0, 2050]=>2494111, [27394266, 0, 2050]=>1014921, [27394267, 0, 2050]=>51978, [27394270, 0, 2050]=>371766, [27394271, 0, 2050]=>20260, [27263586, 0, 2050]=>119693646, [27264319, 0, 2050]=>59756315}>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment