Bitrix API

Diag

FinalYes

Table of Contents

Methods

activate()  : $this
Activate log.
collectDebugInfo()  : void
Collects debug info.
deactivate()  : $this
Deactivate log.
getInstance()  : Diag
Gets instance of Diag.
log()  : void
Logs data in common log (@see AddMessage2Log).
logDebugInfo()  : void
Logs debug info.
setExclusiveUserId()  : $this
Sets user id who can use class Diag. If set null then everybody can use it.
setShowOnDisplay()  : $this
Sets value to status of show log message on display.

Methods

activate()

Activate log.

public activate() : $this
Return values
$this

collectDebugInfo()

Collects debug info.

public collectDebugInfo(mixed $uniqueId) : void
Parameters
$uniqueId : mixed

Id of segment.

deactivate()

Deactivate log.

public deactivate() : $this
Return values
$this

getInstance()

Gets instance of Diag.

public static getInstance() : Diag
Return values
Diag

log()

Logs data in common log (@see AddMessage2Log).

public log(mixed $data) : void
Parameters
$data : mixed

Mixed data to log.

logDebugInfo()

Logs debug info.

public logDebugInfo(mixed $uniqueId[, null $label = null ]) : void
Parameters
$uniqueId : mixed

Id of segment.

$label : null = null

Label for human.

Tags
throws
SystemException

setExclusiveUserId()

Sets user id who can use class Diag. If set null then everybody can use it.

public setExclusiveUserId(int $exclusiveUserId) : $this
Parameters
$exclusiveUserId : int

Id of user.

Return values
$this

setShowOnDisplay()

Sets value to status of show log message on display.

public setShowOnDisplay(bool $showOnDisplay) : $this
Parameters
$showOnDisplay : bool

Value.

Return values
$this

        
On this page

Search results