Your New Relic Node.js agent log captures errors at the default info
level. However, when troubleshooting or debugging, generate a more verbose trace
log to help find and investigate problems.
重要
The trace
log setting is a highly verbose logging level. To reduce disk space consumption, return the logging : {
section's level
to its original setting after testing.
Generate log files
To generate the detailed trace
log file:
Edit your
newrelic.js
file and change thelogging
section'slevel
totrace
.logging: {level: 'trace'}Restart Node.
Exercise your web application for about five minutes to generate sufficient logging data.
After testing, change the
level
to a less verbose logging level, such asinfo
(default).Open and examine the generated log file.
Examine log file
By default, the Node.js agent stores the log file in the current working directory as newrelic_agent.log
. If the log file or folder are not visible:
- Check whether you have set the logging path to
stdout
orstderr
. - Verify that the current working directory is the same as the directory where you expect the log file to be located.
その他のヘルプ
さらに支援が必要な場合は、これらのサポートと学習リソースを確認してください:
- Explorers Hubでは、コミュニティからのサポートを受けたり、ディスカッションに参加したりすることができます。
- 当社サイトで答えを見つけて、サポートポータルの使用方法を確認してください。
- Linux、Windows、およびmacOS向けトラブルシューティングツールであるNew Relic Diagnosticsを実行してください。
- New Relicの とandドキュメント をご確認ください。