Module: Kernel

Defined in:
lib/crtu/utils/logger.rb

Overview

add instance to kernel so we have global acess to them

Instance Method Summary collapse

Instance Method Details

#all_loggerObject

Console and File log



68
69
70
# File 'lib/crtu/utils/logger.rb', line 68

def all_logger
  GlobalLogger.instance.global_mix_logger
end

#console_loggerObject

Console only log



58
59
60
# File 'lib/crtu/utils/logger.rb', line 58

def console_logger
  GlobalLogger.instance.global_console_logger
end

#file_loggerObject

File only log



63
64
65
# File 'lib/crtu/utils/logger.rb', line 63

def file_logger
  GlobalLogger.instance.global_file_logger
end