LoggingUtil

Description

static class Tinman.Core.Logging.LoggingUtil

Static helper class for accessing the Logging API.

Public / Constants

Verbosity​Max


public constant VerbosityMax → (LogVerbosity.Trace:LogVerbosity)

The maximum log verbosity level.

Verbosity​Min


public constant VerbosityMin → (LogVerbosity.Fatal:LogVerbosity)

The minimum log verbosity level.

Public / Methods

Basic​Configuration


public static method BasicConfiguration → (2)

verbosity opt : LogVerbosity = LogVerbosity.Common

The root verbosity level.

console opt : LogVerbosity = LogVerbosity.Warning

Maximum log verbosity to output on console message handler.

Performs basic configuration on the Root logger category.

The given verbosity opt and console opt parameters are independent. However, console opt will effectively be clamped to verbosity opt, as long as the latter is less detailed.

Get​Category


public static method GetCategory → (1)

fullName in : string

[not-null]
The full name.

returns → ILoggerCategory

The logger category.

Returns the ILoggerCategory for the given full name.

Get​Logger


public static method GetLogger → (1)

fullName in : string

[not-null]
The full name.

returns → ILogger

The ILogger instance.

Returns a ILogger instance for the given full name.

The given name should be the fully qualified name of the class that declares the logger variable.

Public / Attributes

Root


public static attribute Root → (get)

value : ILoggerCategory

[not-null]
The root category.

The root of the category hierarchy.