Module: CiscoLogger
Constant Summary collapse
- @@logger =
Logger.new(STDOUT)
Instance Method Summary collapse
- #debug(string) ⇒ Object
- #debug_disable ⇒ Object
- #debug_enable ⇒ Object
- #error(string) ⇒ Object
- #info(string) ⇒ Object
- #warn(string) ⇒ Object
Instance Method Details
#debug(string) ⇒ Object
62 63 64 |
# File 'lib/cisco_nxapi/cisco_logger.rb', line 62 def debug(string) @@logger.debug(string) end |
#debug_disable ⇒ Object
48 49 50 |
# File 'lib/cisco_nxapi/cisco_logger.rb', line 48 def debug_disable @@logger.level = Logger::INFO end |
#debug_enable ⇒ Object
44 45 46 |
# File 'lib/cisco_nxapi/cisco_logger.rb', line 44 def debug_enable @@logger.level = Logger::DEBUG end |
#error(string) ⇒ Object
30 31 32 |
# File 'lib/cisco_nxapi/cisco_logger.rb', line 30 def error(string) @@logger.err(string) end |
#info(string) ⇒ Object
66 67 68 |
# File 'lib/cisco_nxapi/cisco_logger.rb', line 66 def info(string) @@logger.info(string) end |
#warn(string) ⇒ Object
34 35 36 |
# File 'lib/cisco_nxapi/cisco_logger.rb', line 34 def warn(string) @@logger.warning(string) end |