-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Uses a custom sink to forward Serilog logging messages (#1084)
* extend support for Serilog 1.x * 1. Prevent forwarding duplicate log when Micsoft.Extensions.Logging is used. 2. Fixes an issue where serilog logging supportibity metrics didn't get generated * - Renames Logging wrapper name to Log4NetLogging. - Update the msiinstaller solution to include new wrappers. * Adds a comment around why the serilog wrapper need to be loaded dynamically. Fixes typos. * cleans up unused references.
- Loading branch information
Showing
13 changed files
with
245 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/Agent/NewRelic/Agent/Extensions/Providers/Wrapper/Log4NetLogging/Instrumentation.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
Copyright 2020 New Relic Corporation. All rights reserved. | ||
SPDX-License-Identifier: Apache-2.0 | ||
--> | ||
<extension xmlns="urn:newrelic-extension"> | ||
<instrumentation> | ||
<tracerFactory name="log4net"> | ||
<match assemblyName="log4net" className="log4net.Repository.Hierarchy.Logger"> | ||
<exactMethodMatcher methodName="CallAppenders" /> | ||
</match> | ||
</tracerFactory> | ||
</instrumentation> | ||
</extension> |
6 changes: 3 additions & 3 deletions
6
.../Providers/Wrapper/Logging/Logging.csproj → ...pper/Log4NetLogging/Log4NetLogging.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
112 changes: 0 additions & 112 deletions
112
src/Agent/NewRelic/Agent/Extensions/Providers/Wrapper/Logging/SerilogWrapper.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.