summaryrefslogtreecommitdiff
path: root/RELEASE_NOTES.md
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2017-03-01 14:38:31 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2017-04-05 22:35:53 -0700
commitb74d7a53addf42a2be56b262cb1207ffedf48f78 (patch)
treefc513eaa3b4988ca38892e98e752d9aef2726965 /RELEASE_NOTES.md
parent0537474a7c576011b12149725f65da617b3e1ef0 (diff)
downloadchef-b74d7a53addf42a2be56b262cb1207ffedf48f78.tar.gz
CHEF-13: remove magic from the logger/formatter settings
closes #2514 Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'RELEASE_NOTES.md')
-rw-r--r--RELEASE_NOTES.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md
index b16550b8e6..fa3b34e08d 100644
--- a/RELEASE_NOTES.md
+++ b/RELEASE_NOTES.md
@@ -269,3 +269,26 @@ use `recipe.rb` in the root of the cookbook.
The `use_inline_resources` provider mode is always enabled when using the
`action :name do ... end` syntax. You can remove the `use_inline_resources`
line.
+
+### Magic removed from logger and formatter settings
+
+There is no more magic involved in the setting of the logger and the formatter, the default is now the formatter.
+
+Setting the `log_location` in the config.rb now applies to both daemonized and command-line invocation and there is
+no magic which dups the logger in order to log to STDOUT on the command line in that case.
+
+Setting logger settings in config.rb is most likely no longer appropriate and those settings should be changed to
+command line flags on the config script or cronjob that invokes chef-client daemonized. In other words:
+
+```
+chef-client -d -L /var/log/client.rb --force-logger
+```
+
+If your logfiles switch to the formatter, you need to include `--force-logger` for your daemonized runs.
+
+If your command line invocations have no output, delete the config.rb setting for the log_location and move that
+to the command line that invokes your daemon process.
+
+Redirecting output to a file with `chef-client > /tmp/chef.out` now captures the same output as invoking it directly on the command
+line with no redirection.
+