Class: Rubee::Logger

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

Class Method Summary collapse

Class Method Details

.critical(message:, **options, &block) ⇒ Object



12
13
14
# File 'lib/rubee/logger.rb', line 12

def critical(message:, **options, &block)
  out.critical(message:, **options, &block)
end

.debug(object:, **options, &block) ⇒ Object



20
21
22
# File 'lib/rubee/logger.rb', line 20

def debug(object:, **options, &block)
  out.debug(object:, **options, &block)
end

.error(message:, **options, &block) ⇒ Object



8
9
10
# File 'lib/rubee/logger.rb', line 8

def error(message:, **options, &block)
  out.error(message:, **options, &block)
end

.info(message:, **options, &block) ⇒ Object



16
17
18
# File 'lib/rubee/logger.rb', line 16

def info(message:, **options, &block)
  out.info(message:, **options, &block)
end

.outObject



24
25
26
# File 'lib/rubee/logger.rb', line 24

def out
  Rubee::Configuration.get_logger || Stdout
end

.warn(message:, **options, &block) ⇒ Object



4
5
6
# File 'lib/rubee/logger.rb', line 4

def warn(message:, **options, &block)
  out.warn(message:, **options, &block)
end