Skip to content
This repository has been archived by the owner on May 10, 2018. It is now read-only.

client.rb page is missing force_logger #612

Open
vinyar opened this issue Aug 11, 2015 · 0 comments
Open

client.rb page is missing force_logger #612

vinyar opened this issue Aug 11, 2015 · 0 comments

Comments

@vinyar
Copy link

vinyar commented Aug 11, 2015

force_logger forces STDOUT output even if a log file is defined. without force_logger running chef_client at command line will produce no output when log_location points at a file.

Doc link: https://docs.chef.io/config_rb_client.html

usage: client.rb or knife.rb should have the following for produce both, the log file and STDOUT

log_location "path/to/log"
daemonize false                         # false by default
force_logger true

source code:
https://github.com/chef/chef/blob/master/chef-config/lib/chef-config/config.rb#L271-L272
https://github.com/chef/chef/blob/master/lib/chef/application.rb#L148

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant