# File lib/chef/application.rb, line 99 def configure_logging Chef::Log.init(Chef::Config[:log_location]) if ( Chef::Config[:log_location] != STDOUT ) && STDOUT.tty? && (!Chef::Config[:daemonize]) stdout_logger = Logger.new(STDOUT) STDOUT.sync = true stdout_logger.formatter = Chef::Log.logger.formatter Chef::Log.loggers << stdout_logger end Chef::Log.level = Chef::Config[:log_level] end