Class: RipXploreLog
- Inherits:
-
Object
- Object
- RipXploreLog
- Defined in:
- lib/RipXploreLog.rb
Class Method Summary collapse
- .debug_logging ⇒ Object
- .log(message, severity = Logger::INFO, progname = nil) ⇒ Object
- .log_to(filename) ⇒ Object
Class Method Details
.debug_logging ⇒ Object
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( ,severity=Logger::INFO, progname = nil) @@logger.add(severity,,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 |