Class Logging
Assembly: Acoustics.Shared.dll
Syntax
public class Logging : IDisposable, IAsyncDisposable
Constructors
|
Improve this Doc
View Source
Logging(Boolean, Level, Boolean)
Initializes a new instance of the Logging class.
Declaration
public Logging(bool colorConsole, Level defaultLevel, bool quietConsole)
Parameters
Type |
Name |
Description |
Boolean |
colorConsole |
If True, colored logs will be used.
|
log4net.Core.Level |
defaultLevel |
The default level to set for the root logger.
|
Boolean |
quietConsole |
If True limits the level on the appenders to log4net.Core.Level.Error.
|
Fields
|
Improve this Doc
View Source
CleanLogger
Declaration
public const string CleanLogger = "CleanLogger"
Field Value
|
Improve this Doc
View Source
LogFileOnly
Declaration
public const string LogFileOnly = "LogFileOnly"
Field Value
|
Improve this Doc
View Source
LogFolder
Declaration
public static readonly string LogFolder
Field Value
|
Improve this Doc
View Source
RootNamespace
Declaration
public static readonly Assembly RootNamespace
Field Value
Properties
|
Improve this Doc
View Source
LogFileName
Declaration
public string LogFileName { get; }
Property Value
|
Improve this Doc
View Source
LogFilePath
Declaration
public string LogFilePath { get; }
Property Value
|
Improve this Doc
View Source
QuietConsole
Declaration
public bool QuietConsole { get; }
Property Value
|
Improve this Doc
View Source
Verbosity
Declaration
public Level Verbosity { get; }
Property Value
Type |
Description |
log4net.Core.Level |
|
Methods
|
Improve this Doc
View Source
Dispose()
Declaration
|
Improve this Doc
View Source
DisposeAsync()
Declaration
public async ValueTask DisposeAsync()
Returns
|
Improve this Doc
View Source
ModifyVerbosity(Level, Boolean)
Initializes the logging system.
Declaration
public void ModifyVerbosity(Level defaultLevel, bool quietConsole)
Parameters
Type |
Name |
Description |
log4net.Core.Level |
defaultLevel |
The default level to set for the root logger.
|
Boolean |
quietConsole |
If True limits the level on the appenders to log4net.Core.Level.Error.
|
|
Improve this Doc
View Source
TestLogging()
Declaration
public void TestLogging()
Implements
Extension Methods