Method: Chef::Application#force_force_logger

Defined in:
lib/chef/application.rb

#force_force_loggerObject

Force the logger by default for the :winevt and :syslog loggers. Since we do not and cannot support multiple log levels in a mix-and-match situation with formatters and loggers, and the formatters do not support syslog, we force the formatter off by default and the log level is thus info by default. Users can add ‘–force-formatter -l info` to get back formatter output on STDOUT along with syslog logging.



216
217
218
# File 'lib/chef/application.rb', line 216

def force_force_logger
  chef_config[:force_logger] = true unless chef_config[:force_formatter]
end