次の方法で共有


LogRegistration Class

Definition

Represents single entry in a log with associated metadata.

public ref class LogRegistration
[System.Diagnostics.DebuggerDisplay("{DebuggerDisplay,nq}")]
[System.Runtime.Serialization.DataContract]
public class LogRegistration
[<System.Diagnostics.DebuggerDisplay("{DebuggerDisplay,nq}")>]
[<System.Runtime.Serialization.DataContract>]
type LogRegistration = class
Public Class LogRegistration
Inheritance
LogRegistration
Attributes

Constructors

LogRegistration(LogId)

Initializes a new instance of the LogRegistration class. This overload is for a failed result. Status will be set to Failure.

LogRegistration(RegistrationStatuses, LogId, LoggingLevelSettings, String)

Initializes a new instance of the LogRegistration class. This overload is for a successful result.

Properties

AutoFlushEnabled

Gets a value indicating whether Autoflush is set for the trace log stream.

Id

Gets the LogId representing the log that has been registered.

LogFilePathPrefix

Gets a string representing the directory and file prefix that should be logged.

Status

Gets the status of the call to RegisterTraceLogAsync(LogId, LoggerOptions, CancellationToken), indicates if a new trace log stream was registered or an existing registration already exists.

VerbositySettings

Gets the LoggingLevelSettings representing the requested logging verbosity settings of the registered trace log stream.

Methods

IsSuccess(Boolean)

Method used to determine if this LogRegistration's RegistrationStatusesStatus represents a successful result.

Applies to