1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-18 13:31:36 +03:00
mobile-nixos/boot/init/lib/logger.rb

10 lines
286 B
Ruby
Raw Normal View History

2019-12-23 06:32:34 +03:00
# FIXME: Allow overriding $logger.level = Logger::DEBUG at build-time
#LOG_LEVEL = Logger::INFO
LOG_LEVEL = Logger::DEBUG
$logger = Logger.new(STDOUT, level: LOG_LEVEL)
$logger.debug("Logger initialized... (#{LOG_LEVEL})")
2019-12-22 07:12:39 +03:00
def log(*args, level: :info)
$logger.send(level, *args)
end