title | tags | metaDescription | redirects | freshnessValidatedDate | |||||
---|---|---|---|---|---|---|---|---|---|
Generating logs for troubleshooting (Ruby) |
|
Follow these steps to collect detailed debug-level logging from the New Relic Ruby agent. |
|
never |
Detailed debug logging can help troubleshoot your standard Ruby agent installation.
If you are using Heroku, see [Ruby agent and Heroku](/docs/agents/ruby-agent/miscellaneous/ruby-agent-heroku#logging).To generate detailed New Relic for Ruby log files:
-
Open your
newrelic.yml
file in an editor. -
Change the
`debug` is a highly verbose logging level. Ensure you return to your previous `log_level` after you generate debug-level logs.log_level
todebug
and save the file. Ensure you do not modify the indentation. -
Restart your web application.
-
Generate some traffic to your app and run it for about five minutes.
-
Examine your log file for errors. By default, your log file is located in your app's log folder and is named
newrelic_agent.log
. -
If sending your log file to New Relic Support, attach the log file to your support ticket, along with
newrelic.yml
, your Gemfile, andGemfile.lock
. -
Edit
newrelic.yml
again and change thelog_level
to the previous setting. Save the file.