다음을 통해 공유


Logger Class

Definition

Workspace Logger class

public ref class Logger
[Windows::Foundation::Metadata::WebHostHidden]
public ref class Logger
[Windows::Foundation::Metadata::WebHostHidden]
class Logger
public class Logger
[System.ComponentModel.Localizable(false)]
public class Logger
type Logger = class
[<System.ComponentModel.Localizable(false)>]
type Logger = class
Public Class Logger
Inheritance
Logger
Attributes

Remarks

Most logs are intended for diagnostics and are not localized. Turn off default warnings to localize logs with LocalizableAttribute.

Properties

CurrentLevel

CurrentLevel Singleton property

Level

Level property

Loggers

List of loggers available

Name

Name property

Methods

AddListener(LoggerListener)

Add a logger listener delegate

Debug(String, Object[])

Log a Debug level message.

Error(String, Object[])

Log a Error level message.

GetLogger(String)

Create a logger instance using a name

Info(String, Object[])

Log a Info level message.

IsEnabled(LoggingLevel)

Return true if a logging level is enabled

Log(Boolean, LoggingLevel, String, Object[])

Log a message.

Log(LoggingLevel, String, Object[])

Log a message.

LogPiiCompliant(LoggingLevel, String, Object[])

Logs PII Compliant text.

RemoveListener(LoggerListener)

Remove a logger listener delegate

ToLoggingLevel(TraceLevel)

Return the Logging level from a Diagnostic level

Trace(String, Object[])

Log a Trace level message.

Warning(String, Object[])

Log a Warning level message.

Applies to