Class: FileMonitor::Hooks::FileLog

Inherits:
Object
  • Object
show all
Defined in:
lib/file_monitor/hooks/file_log.rb

Class Method Summary collapse

Class Method Details

.ioObject



8
9
10
11
# File 'lib/file_monitor/hooks/file_log.rb', line 8

def self.io
  require "logger"
  @io = ::Logger.new(log_path)
end

.log_pathObject



17
# File 'lib/file_monitor/hooks/file_log.rb', line 17

def self.log_path; @log_path; end

.log_path=(path) ⇒ Object



13
14
15
# File 'lib/file_monitor/hooks/file_log.rb', line 13

def self.log_path=(path)
  @log_path = path
end

.run(*args) ⇒ Object



4
5
6
# File 'lib/file_monitor/hooks/file_log.rb', line 4

def self.run *args
  io << args.inspect
end