Class ULS

Provides a Unified Logging Service (ULS) that monitors log messages.

Index

Methods

Methods

public static decreaseIndent()

Decreases the indentation for subsequent log messages.

public static get_enabled(): boolean

Gets a value that indicates whether the Unified Logging Service (ULS) is enabled.

Returns

boolean

public static increaseIndent()

Increases the indentation for subsequent log messages.

public static log(debugMessage: string)

Logs the specified debug message. This method logs the message with a time stamp. If any log messages are pending, this method also logs them. If the message cannot be logged, the message is added to the list of pending log messages.

Parameters

  • debugMessage: string

public static set_enabled(value: boolean)

Sets a value that indicates whether the Unified Logging Service (ULS) is enabled.

Parameters

  • value: boolean

public static traceApiEnter(functionName: string, args: Array<any>)

Traces when the function was entered.

Parameters

  • functionName: string
  • args: Array<any>

public static traceApiEnter(functionName: string)

Traces when the function was entered.

Parameters

  • functionName: string

public static traceApiLeave()

Traces when the function has finished.