-
-
Notifications
You must be signed in to change notification settings - Fork 780
Implement Serilog in DNN #7044
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
donker
wants to merge
68
commits into
dnnsoftware:develop
Choose a base branch
from
donker:serilog-2026
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Implement Serilog in DNN #7044
Changes from 64 commits
Commits
Show all changes
68 commits
Select commit
Hold shift + click to select a range
68c02a5
Merge code from previous Serilog solution to latest DNN version
donker fcf8e22
Add obsolete annotations
donker 4096f33
Correct path for config file and add to DNN startup
donker f937289
Add helper class to aid transition
donker c4b173d
Implement new logic for JwtAuth project
donker 678e228
Update DNN Platform/Dnn.AuthServices.Jwt/Components/Common/Controller…
donker 51a0998
Fix position of adding logger in jwt controller
donker e676ad0
Merge branch 'serilog-2026' of https://github.com/donker/Dnn.Platform…
donker 0b2abbe
Add default config
donker b285fdc
Add copying over .net dlls for Serilog
donker 4b351eb
Roll back deprecation of LoggerSource for now
donker f4d80f5
Improve logging in JwtController
donker eb42354
Digging out of dll hell
donker 5551266
more dll hell
donker 73b79f2
Hope fully last correction to packaging
donker ed9320b
Merge branch 'develop' into serilog-2026
donker 98e7b2a
Naming conventions
donker fbd10fe
Add null check
donker 174da6d
Fixes to default serilog setup
donker fb05c8f
File naming
donker 6b7b404
Merge branch 'develop' into serilog-2026
donker c70afee
Merge branch 'develop' into serilog-2026
donker 69732d1
Merge branch 'develop' into serilog-2026
donker 46ca391
Merge branch 'develop' into serilog-2026
donker f863333
Merge branch 'develop' into serilog-2026
donker 5175cd4
Update versions in assembly binding redirects
donker 05b0970
Merge branch 'develop' into serilog-2026
donker 03b6c1b
Merge branch 'serilog-2026' of https://github.com/donker/Dnn.Platform…
donker 3546c4d
Merge branch 'develop' into serilog-2026
donker 04fb054
Merge branch 'develop' into serilog-2026
donker 040f7e5
Add ILogger migration helpers
bdukes 265f576
Use ILogger in DotNetNuke.Maintenance
bdukes 001ccb3
Add ILogger to Dnn.PersonaBar.Security.Components.Checks.BaseCheck
bdukes 74c7c6e
Remove LoggerSource usages
bdukes 0f627b8
Add LogWrapper for API that expects ILog
bdukes dd91420
Mark old logging interfaces as deprecated
bdukes 74793c8
Merge branch 'develop' into serilog-2026
donker 1643619
Merge branch 'develop' into serilog-2026
donker d3dc37c
Add a DNN Enricher to add portal and user ids
donker 1be27db
Different approach to log enriching which should allow us more flexib…
donker 4ec91b3
That didn't work as well. Rolling back to an enricher again.
donker 1125e3a
Merge branch 'develop' into serilog-2026
donker 3bc360e
Merge branch 'develop' into serilog-2026
donker 1bd71c7
Use LoggerMessage for logging statements (#130)
bdukes 97dff1f
We need System.Memory at install time
donker 3099005
Merge branch 'develop' into serilog-2026
donker 935f05a
Merge branch 'develop' into serilog-2026
donker 1138f82
Merge branch 'develop' into serilog-2026
donker c2d22f2
Merge branch 'develop' into serilog-2026
donker 713b337
Merge branch 'develop' into serilog-2026
donker eede927
Merge branch 'develop' into serilog-2026
donker 3711739
Make the loggerfactory a singleton in the logging controller
donker 7fb4b6e
Fix
donker 1f4ab16
Improve log context logic
donker f4b94d0
Remove one more potential instance of the logging provider
donker 156d81c
Correct log level
donker 9eb33ac
Remove erroneous call
donker 08c318d
Reimplement the AddSerilog builder extension
donker a04b671
Ensure Serilog singletons are instantiated only once.
dimarobert 8e68a39
Improve enrichment with DnnSystemInfoEnricher
donker b21f1e2
Merge branch 'develop' into serilog-2026
donker 23665a5
Fix application mappath for testing
donker a6e51be
Merge branch 'develop' into serilog-2026
donker 8558566
Merge branch 'develop' into serilog-2026
bdukes b09f6bc
Fix bad indentation after merge
bdukes aae4191
Fix order of using statements after merge
bdukes 8eff2b1
Add JSON properties to default output template
bdukes 9b906b8
Merge branch 'develop' into serilog-2026
bdukes File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
21 changes: 21 additions & 0 deletions
21
DNN Platform/Admin Modules/Dnn.Modules.Console/LoggerMessages.cs
This file contains hidden or 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,21 @@ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the MIT license. | ||
| // See the LICENSE file in the project root for more information | ||
|
|
||
| namespace Dnn.Modules.Console | ||
| { | ||
| using System; | ||
|
|
||
| using Microsoft.Extensions.Logging; | ||
|
|
||
| /// <summary>Extension methods for <see cref="ILogger"/> for pre-defined logging messages.</summary> | ||
| /// <remarks>The Dnn.Modules.Console project has been assigned event IDs from 3,500,000 to 3,599,999.</remarks> | ||
| internal static partial class LoggerMessages | ||
| { | ||
| [LoggerMessage(EventId = 3_500_000, Level = LogLevel.Error)] | ||
| public static partial void SettingsParseWidthException(this ILogger logger, Exception exception); | ||
|
|
||
| [LoggerMessage(EventId = 3_500_100, Level = LogLevel.Error)] | ||
| public static partial void ViewConsoleParseConsoleModuleIdException(this ILogger logger, Exception exception); | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.