boot/init: Logger is configurable
-# FIXME: Allow overriding $logger.level = Logger::DEBUG at build-time
-#LOG_LEVEL = Logger::INFO
-LOG_LEVEL = Logger::DEBUG
+LOG_LEVEL = Logger::INFO
+if Configuration["log"]
+ level = Configuration["log"]["level"]
+ if level
+ LOG_LEVEL = Logger.const_get(level.to_sym)
+ end
+end
$logger = Logger.new(STDOUT, level: LOG_LEVEL)
$logger.debug("Logger initialized... (#{LOG_LEVEL})")
