Bitrix API

Logger

Class Logger Recoring operations for trading platforms.

Table of Contents

Constants

LOG_LEVEL_DEBUG  = 30
LOG_LEVEL_DISABLE  = 0
LOG_LEVEL_ERROR  = 10
LOG_LEVEL_INFO  = 20

Methods

__construct()  : mixed
Constructor
addRecord()  : bool
setLevel()  : mixed
Sets log level

Constants

LOG_LEVEL_DEBUG

public mixed LOG_LEVEL_DEBUG = 30

LOG_LEVEL_DISABLE

public mixed LOG_LEVEL_DISABLE = 0

LOG_LEVEL_ERROR

public mixed LOG_LEVEL_ERROR = 10

LOG_LEVEL_INFO

public mixed LOG_LEVEL_INFO = 20

Methods

__construct()

Constructor

public __construct([int $logLevel = self::LOG_LEVEL_ERROR ]) : mixed
Parameters
$logLevel : int = self::LOG_LEVEL_ERROR

Log level..

addRecord()

public addRecord(int $level, string $type, string $itemId, string $description) : bool
Parameters
$level : int

Record level.

$type : string

Record type.

$itemId : string

Identifier of record object.

$description : string

Record description.

Tags
throws
SystemException
Return values
bool

setLevel()

Sets log level

public setLevel(int $logLevel) : mixed
Parameters
$logLevel : int

Log level.


        
On this page

Search results