Module: KStor::Log

Defined in:
lib/kstor/log.rb

Overview

Central logging to systemd-journald.

Class Method Summary collapse

Class Method Details

.alert(msg) ⇒ Object



37
38
39
# File 'lib/kstor/log.rb', line 37

def alert(msg)
  logger.alert(msg)
end

.critical(msg) ⇒ Object



33
34
35
# File 'lib/kstor/log.rb', line 33

def critical(msg)
  logger.critical(msg)
end

.debug(msg) ⇒ Object



13
14
15
# File 'lib/kstor/log.rb', line 13

def debug(msg)
  logger.debug(msg)
end

.emergency(msg) ⇒ Object



41
42
43
# File 'lib/kstor/log.rb', line 41

def emergency(msg)
  logger.emergency(msg)
end

.error(msg) ⇒ Object



29
30
31
# File 'lib/kstor/log.rb', line 29

def error(msg)
  logger.error(msg)
end

.exception(exc) ⇒ Object



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

def exception(exc)
  logger.exception(exc)
end

.info(msg) ⇒ Object



17
18
19
# File 'lib/kstor/log.rb', line 17

def info(msg)
  logger.info(msg)
end

.notice(msg) ⇒ Object



21
22
23
# File 'lib/kstor/log.rb', line 21

def notice(msg)
  logger.notice(msg)
end

.reporting_level=(lvl) ⇒ Object



45
46
47
# File 'lib/kstor/log.rb', line 45

def reporting_level=(lvl)
  logger.min_priority = lvl
end

.warn(msg) ⇒ Object



25
26
27
# File 'lib/kstor/log.rb', line 25

def warn(msg)
  logger.warn(msg)
end