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.

DebugLogger

class Coralogix\DebugLogger
Class DebugLogger
Coralogix logger for debug information

Properties

public property Coralogix\DebugLogger::$debug_mode
Type:

bool debug status (default=false)

Methods

public static Coralogix\DebugLogger::log(string $level, string $message, \\Exception $exception=NULL)
Send log message to STDOUT
Parameters:
  • $level (string) log message level

  • $message (string) log message

  • $exception (Exception) log exception information (default=null)

public static Coralogix\DebugLogger::__callStatic(string $level, array $params)
Log sending with default levels (DEBUG, INFO, WARNING, ERROR)
Parameters:
  • $level (string) log message level

  • $params (string) log params

public static Coralogix\DebugLogger::exception(string $message, \\Exception $exception)
Sending log message with exception information
Parameters:
  • $message (string) log message

  • $exception (Exception) log exception information