共用方式為


TraceLogger Class

Definition

Class for Trace logger.

public ref class TraceLogger
public class TraceLogger
type TraceLogger = class
Public Class TraceLogger
Inheritance
TraceLogger

Constructors

TraceLogger(String)

Constructor.

TraceLogger(TraceSource)

Internal reference to add a trace source configured from elsewhere. this is built to support Package Deployers PowerShell module

Properties

CurrentTraceLevel

Returns the trace source level for the current logger.

EnabledInMemoryLogCapture

Enables or disabled in-memory log capture. Default is false.

LastError

Last Error.

LastException

Last Exception.

LogRetentionDuration

Defines to the maximum amount of time in Minuets that logs will be kept in memory before being purged

Logs

Collection of logs captured to date.

Methods

GetLogFilePath()

Gives the Log file path

Log(Exception)

Log an error with an Exception.

Log(String, TraceEventType, Exception)

Log a Trace event.

Log(String, TraceEventType)

Log a Trace event.

Log(String)

Log a Message.

ResetLastError()

Last error reset.

Applies to