Module: CiscoLogger

Extended by:
CiscoLogger
Included in:
CiscoLogger
Defined in:
lib/cisco_nxapi/cisco_logger.rb

Constant Summary collapse

@@logger =
Logger.new(STDOUT)

Instance Method Summary collapse

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_disableObject



48
49
50
# File 'lib/cisco_nxapi/cisco_logger.rb', line 48

def debug_disable
  @@logger.level = Logger::INFO
end

#debug_enableObject



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