-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from bernarden/feature/global-tags
Adds global parameters.
- Loading branch information
Showing
7 changed files
with
110 additions
and
17 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
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
33 changes: 33 additions & 0 deletions
33
Source/Vima.LoggingAbstractor.Core/AbstractLoggerSettings.cs
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,33 @@ | ||
using System.Collections.Generic; | ||
using Vima.LoggingAbstractor.Core.Parameters; | ||
|
||
namespace Vima.LoggingAbstractor.Core | ||
{ | ||
/// <summary> | ||
/// Represents an instance of settings. | ||
/// </summary> | ||
public class AbstractLoggerSettings | ||
{ | ||
private IEnumerable<ILoggingParameter> _globalLoggingParameters; | ||
|
||
/// <summary> | ||
/// Gets or sets the minimal logging lever required for a log to go through. | ||
/// </summary> | ||
/// <value> | ||
/// The minimal logging lever required for a log to go through. | ||
/// </value> | ||
public LoggingLevel MinimalLoggingLevel { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the global logging parameters that are applied to every log. | ||
/// </summary> | ||
/// <value> | ||
/// The global logging parameters. | ||
/// </value> | ||
public IEnumerable<ILoggingParameter> GlobalLoggingParameters | ||
{ | ||
get => _globalLoggingParameters ?? (_globalLoggingParameters = new List<ILoggingParameter>()); | ||
set => _globalLoggingParameters = value; | ||
} | ||
} | ||
} |
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