class Logger

Public Instance Methods

file?() click to toggle source

判断当前日志输出到logfile

# File lib/swee/patches/logger.rb, line 12
def file?
  instance_variable_get(:@logdev).dev.is_a?(File)
end
io?() click to toggle source

判断当前日志是否输出到stdout

# File lib/swee/patches/logger.rb, line 6
def io?
  instance_variable_get(:@logdev).dev === STDOUT
end