Skip to content

Commit

Permalink
Update Default Agent Logging (#321)
Browse files Browse the repository at this point in the history
* Update newrelic.ini to log to stderr.

* Update default logging location to stdout.

* Update log_file comment in newrelic.ini.
  • Loading branch information
umaannamalai authored Aug 24, 2021
1 parent 3703fb3 commit 41b4103
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions newrelic/newrelic.ini
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,15 @@ app_name = Python Application
# each environment below.
monitor_mode = true

# Sets the name of a file to log agent messages to. Useful for
# debugging any issues with the agent. This is not set by
# default as it is not known in advance what user your web
# application processes will run as and where they have
# permission to write to. Whatever you set this to you must
# ensure that the permissions for the containing directory and
# the file itself are correct, and that the user that your web
# application runs as can write to the file. If not able to
# write out a log file, it is also possible to say "stderr" and
# output to standard error output. This would normally result in
# output appearing in your web server log.
#log_file = /tmp/newrelic-python-agent.log
# Sets the name of a file to log agent messages to. Whatever you
# set this to, you must ensure that the permissions for the
# containing directory and the file itself are correct, and
# that the user that your web application runs as can write out
# to the file. If not able to out a log file, it is also
# possible to say "stderr" and output to standard error output.
# This would normally result in output appearing in your web
# server log.
log_file = stdout

# Sets the level of detail of messages sent to the log file, if
# a log file location has been provided. Possible values, in
Expand Down

0 comments on commit 41b4103

Please sign in to comment.