Class ConsoleLogger
Version:
日本語翻訳に関する免責事項
このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。
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: Stylelabs.M.Sdk.Models.Logging
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 |
|---|---|
| System.Boolean |
Methods
LogDebug(String)
Logs debug-level information.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.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 |
|---|---|---|
| System.String | message |
The message to log. |
| Exception | exception |
The exception to log. |
Overrides
LogInfo(String)
Logs info-level information.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | message |
The message to log. |
Overrides
LogWarn(String)
Logs warning-level information.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | message |
The message to log. |