Skip to content

Commit 74d7580

Browse files
authored
Add application logging settings to newrelic.ini. (#562)
* Add application logging settings to newrelic.ini. * Comment out logging settings.
1 parent fcd898f commit 74d7580

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

newrelic/newrelic.ini

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,35 @@ thread_profiler.enabled = true
200200
# https://docs.newrelic.com/docs/transition-guide-distributed-tracing
201201
distributed_tracing.enabled = true
202202

203+
# This setting enables log decoration, the forwarding of log events,
204+
# and the collection of logging metrics if these sub-feature
205+
# configurations are also enabled. If this setting is false, no
206+
# logging instrumentation features are enabled. This can also be
207+
# set using the NEW_RELIC_APPLICATION_LOGGING_ENABLED environment
208+
# variable.
209+
# application_logging.enabled = true
210+
211+
# If true, the agent captures log records emitted by your application
212+
# and forwards them to New Relic. `application_logging.enabled` must
213+
# also be true for this setting to take effect. You can also set
214+
# this using the NEW_RELIC_APPLICATION_LOGGING_FORWARDING_ENABLED
215+
# environment variable.
216+
# application_logging.forwarding.enabled = true
217+
218+
# If true, the agent decorates logs with metadata to link to entities,
219+
# hosts, traces, and spans. `application_logging.enabled` must also
220+
# be true for this setting to take effect. This can also be set
221+
# using the NEW_RELIC_APPLICATION_LOGGING_LOCAL_DECORATING_ENABLED
222+
# environment variable.
223+
# application_logging.local_decorating.enabled = true
224+
225+
# If true, the agent captures metrics related to the log lines
226+
# being sent up by your application. This can also be set
227+
# using the NEW_RELIC_APPLICATION_LOGGING_METRICS_ENABLED
228+
# environment variable.
229+
# application_logging.metrics.enabled = true
230+
231+
203232
# ---------------------------------------------------------------------------
204233

205234
#

0 commit comments

Comments
 (0)