Skip to content

Commit

Permalink
Added NLog InternalLogger output with configured EndPoint details
Browse files Browse the repository at this point in the history
  • Loading branch information
snakefoot authored and juliuskoval committed Dec 17, 2024
1 parent baab7b0 commit 61c5a0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions NLog.Targets.OpenTelemetryProtocol/OtlpTarget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ private BatchLogRecordExportProcessor CreateProcessor(OtlpExporterOptions option
{
try
{
InternalLogger.Info("OtlpTarget(Name={0}) - Creating LogExporter with Protocol={1} to EndPoint={2}", Name, options.Protocol, options.Endpoint);
BaseExporter<LogRecord> otlpExporter = new OtlpLogExporter(options);
return new BatchLogRecordExportProcessor(
otlpExporter,
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,4 @@ If you aren't doing structured logging, leave this as false.
- **ExcludeProperties** : A list of log event properties which won't be added to the final log as attributes. By default empty, meaning that no log event properties will be excluded.
- **OnlyIncludeProperties** : A list of log event properties which will be the only ones to be included in the final log. If both this and `ExcludeProperties` are defined,
this setting will take precedence and `ExcludeProperties` will be ignored.
- **DisableEventListener** : Disable dynamic configuration of Event Tracing (ETW) listener for detailed NLog InternalLogger output.

0 comments on commit 61c5a0d

Please sign in to comment.