Class ConsoleLogger
A simple console logger that can print with or without a built-in template.
The template is: "DateTime | LogLevel | Message".
The minimum log level is info by default.
Implements
Inherited Members
Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ModelsLogging
Assembly: Stylelabs.M.Sdk.dll
Syntax
Properties
UseTemplate
Gets or sets a value indicating whether enables or disables logging using a template.
Declaration
Property Value
| Type | Description |
|---|---|
| bool |
Methods
LogDebug(string)
Logs debug-level information.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| string | message |
The message to log. |
Overrides
LogError(Exception)
Logs error-level information.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| Exception | exception |
The exception to log. |
Overrides
LogError(string, Exception)
Logs error-level information.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| string | message |
The message to log. |
| Exception | exception |
The exception to log. |
Overrides
LogInfo(string)
Logs info-level information.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| string | message |
The message to log. |
Overrides
LogWarn(string)
Logs warning-level information.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| string | message |
The message to log. |