Warning
The Coralogix PHP SDK will End of Life(EOL) Feb 1st 2024.
For PHP 7.4+, please use the Coralogix’s PHP OpenTelemetry Instrumentation Documentation instead.
Constants¶
- class Coralogix\Constants¶
- Class ConstantsConstants structure for Coralogix logger
Constants¶
- MAX_LOG_BUFFER_SIZE = 12 \* 1024 \*\* 2
- Type:
int maximum log buffer size (default=12MiB)
- MAX_LOG_CHUNK_SIZE = 1\.5 \* 1024 \*\* 2
- Type:
int maximum chunk size (default=1.5MiB)
- NORMAL_SEND_SPEED_INTERVAL = 500\.0 / 1000
- Type:
float bulk send interval in normal mode
- FAST_SEND_SPEED_INTERVAL = 100\.0 / 1000
- Type:
float bulk send interval in fast mode
- CORALOGIX_LOG_URL = https://api\.coralogix\.com:443/api/v1/logs
- Type:
string Coralogix logs url endpoint
- CORALOGIX_TIME_DELTA_URL = https://api\.coralogix\.com:443/sdk/v1/time
- Type:
string Coralogix time delay url endpoint
- TIME_DELAY_TIMEOUT = 1
- Type:
int timeout for time-delay request
- FAILED_PRIVATE_KEY = no private key
- Type:
string default private key
- NO_APP_NAME = NO\_APP\_NAME
- Type:
string default application name
- NO_SUB_SYSTEM = NO\_SUB\_NAME
- Type:
string default subsystem name
- LOG_FILE_NAME = coralogix\.sdk\.log
- Type:
string log file name
- HTTP_TIMEOUT = 30
- Type:
int default http timeout
- HTTP_SEND_RETRY_COUNT = 5
- Type:
int number of attempts to retry HTTP post
- HTTP_SEND_RETRY_INTERVAL = 2
- Type:
int interval between failed http post requests
- CORALOGIX_CATEGORY = CORALOGIX
- Type:
string default category for log record
- SYNC_TIME_UPDATE_INTERVAL = 5
- Type:
int time synchronization interval (in minutes)