Static helper class for accessing the Logging API.
static class
|
LoggingUtil
|
The singleton category which represents the root of the category hierarchy.
public
static
readonly
field
|
Root
|
||
type
|
ILoggerCategory
|
Performs basic configuration on the Root logger category.
public
static
method
|
BasicConfiguration
(LogSeverity severity = LogSeverity.Common,
LogSeverity console = LogSeverity.Warning)
|
||
params
|
severity
|
The root severity level. Defaults to Common. | |
console
|
Maximum log severity to output on console message handler. Defaults to Warning |
Returns the ILoggerCategory for the given full name.
public
static
method
|
GetCategory
(string fullName)
|
||
type
|
ILoggerCategory
|
||
params
|
fullName
|
[not-null]
|
The full name. |
returns
|
|
The logger category. |
Returns an ILogger instance for the given full name.
public
static
method
|
GetLogger
(string fullName)
|
||
type
|
ILogger
|
||
params
|
fullName
|
[not-null]
|
The full name. |
returns
|
The ILogger instance. |
Remarks:
The given name should be the fully qualified name of the class that declares the logger variable.