Add `log_to_console` to datadog.yaml
MODIFY
attributes/default.rb
attributes/default.rb
@@ -246,6 +246,7 @@ default['datadog']['syslog']['active'] = false
default['datadog']['syslog']['udp'] = false
default['datadog']['syslog']['host'] = nil
default['datadog']['syslog']['port'] = nil
+default['datadog']['log_to_console'] = nil
default['datadog']['log_file_directory'] =
if platform_family?('windows')
nil # let the agent use a default log file dir

MODIFY
templates/default/datadog.yaml.erb
templates/default/datadog.yaml.erb
@@ -124,6 +124,10 @@ if node['datadog']['syslog']['active']
end
end
+if !node['datadog']['log_to_console'].nil?
+ agent_config['log_to_console'] = node['datadog']['log_to_console']
+end
+
# Set proxy options
if !http_proxy.nil?
agent_config['proxy'] = {

Add `log_to_console` to datadog.yaml (#760)