Module: DirectoryWatcher::Logable

Included in:
DirectoryWatcher, Collector, EventableScanner, Notifier, Scanner
Defined in:
lib/directory_watcher/logable.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.default_loggerObject



18
19
20
21
22
23
# File 'lib/directory_watcher/logable.rb', line 18

def self.default_logger
  require 'logging'
  Logging::Logger[DirectoryWatcher]
rescue LoadError
  NullLogger.new
end

Instance Method Details

#loggerObject



14
15
16
# File 'lib/directory_watcher/logable.rb', line 14

def logger
  @config.logger
end