Class: RipXploreLog

Inherits:
Object
  • Object
show all
Defined in:
lib/RipXploreLog.rb

Class Method Summary collapse

Class Method Details

.debug_loggingObject



9
10
11
# File 'lib/RipXploreLog.rb', line 9

def RipXploreLog.debug_logging
  @@logger.level=Logger::DEBUG
end

.log(message, severity = Logger::INFO, progname = nil) ⇒ Object



19
20
21
# File 'lib/RipXploreLog.rb', line 19

def RipXploreLog.log( message,severity=Logger::INFO, progname = nil) 
  @@logger.add(severity,message,progname)
end

.log_to(filename) ⇒ Object



13
14
15
16
17
# File 'lib/RipXploreLog.rb', line 13

def RipXploreLog.log_to(filename)
  old_log_level=@@logger.level
  @@logger=Logger.new(filename)
  @@logger.level=old_log_level
end