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
2020-02-03 16:19:10 -05:00

10 lines
286 B
Ruby

# 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})")
def log(*args, level: :info)
$logger.send(level, *args)
end