LevelContainer Class¶
Definition¶
namespace Sharplog.Settings
- Object
- LevelContainer
-
Container for all log level specific settings.
Constructors¶
Name |
---|
LevelContainer() |
LevelContainer(Level, Level, Level, Level, Level, Level)] |
Properties¶
Name | Type | GET | SET |
---|---|---|---|
Debug | Level | ||
Trace | Level | ||
Info | Level | ||
Warning | Level | ||
Error | Level | ||
Fatal | Level |
Methods¶
Name | Modifiers | Returns |
---|---|---|
GetLevel(LogLevel level) | public |
Level |
Constructors¶
LevelContainer()¶
-
Initializes a new instance of the LevelContainer class.
LevelContainer(Level, Level, Level, Level, Level, Level)¶
-
Initializes a new instance of the LevelContainer class.
Parameter¶
debug
Level ·null
- The debug settings.
trace
Level ·null
- The trace settings.
info
Level ·null
- The info settings.
warning
Level ·null
- The warning settings.
error
Level ·null
- The error settings.
fatal
Level ·null
- The fatal settings.
Properties¶
Debug¶
- Type: Level
-
Gets or sets the settings for the log level
debug
.
Trace¶
- Type: Level
-
Gets or sets the settings for the log level
trace
.
Info¶
- Type: Level
-
Gets or sets the settings for the log level
info
.
Warning¶
- Type: Level
-
Gets or sets the settings for the log level
warning
.
Error¶
- Type: Level
-
Gets or sets the settings for the log level
error
.
Fatal¶
- Type: Level
-
Gets or sets the settings for the log level
fatal
.
Methods¶
GetLevel(LogLevel)¶
-
Gets the settings for a level.
Parameter¶
level
LogLevel ·- The level the settings should be returned from.
Returns¶
- Type: Level
- The requested settings.