1. ConsoleLogger

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.

Inheritance
System.Object
ConsoleLogger
Implements
Namespace: Stylelabs.M.Sdk.Models.Logging
Assembly: Stylelabs.M.Sdk.dll
Syntax
public class ConsoleLogger : LoggerBase, ILogger

Properties

UseTemplate

Gets or sets a value indicating whether enables or disables logging using a template.

Declaration
public bool UseTemplate { get; set; }
Property Value
TypeDescription
System.Boolean

Methods

LogDebug(String)

Logs debug-level information.

Declaration
protected override void LogDebug(string message)
Parameters
TypeNameDescription
System.Stringmessage

The message to log.

Overrides

LogError(Exception)

Logs error-level information.

Declaration
protected override void LogError(Exception exception)
Parameters
TypeNameDescription
Exceptionexception

The exception to log.

Overrides

LogError(String, Exception)

Logs error-level information.

Declaration
protected override void LogError(string message, Exception exception)
Parameters
TypeNameDescription
System.Stringmessage

The message to log.

Exceptionexception

The exception to log.

Overrides

LogInfo(String)

Logs info-level information.

Declaration
protected override void LogInfo(string message)
Parameters
TypeNameDescription
System.Stringmessage

The message to log.

Overrides

LogWarn(String)

Logs warning-level information.

Declaration
protected override void LogWarn(string message)
Parameters
TypeNameDescription
System.Stringmessage

The message to log.

Overrides

Implements

この記事を改善するための提案がある場合は、 お知らせください!