Skip to content

BaseLogger

  • Full name: \Qubus\Log\Loggers\BaseLogger
  • Parent class: AbstractLogger
  • This class is an Abstract class

Properties

enabled

public bool $enabled

dateFormat

public string $dateFormat

levels

Associative array of the log levels that are given a numerical value to allow comparison of the threshold and the method calling log.

public array $levels

Methods

__construct

public __construct(array $params = []): mixed

Parameters:

Parameter Type Description
$params array

Throws:


isAvailable

public isAvailable(mixed $level): bool

Parameters:

Parameter Type Description
$level mixed

getDate

protected getDate(): string

stringify

protected stringify(array $data = []): string

Parameters:

Parameter Type Description
$data array

interpolate

protected interpolate(mixed $message, array $context = []): string

Parameters:

Parameter Type Description
$message mixed
$context array

__get

public __get(mixed $name): mixed

Parameters:

Parameter Type Description
$name mixed

Throws:


__set

public __set(mixed $name, mixed $value): mixed

Parameters:

Parameter Type Description
$name mixed
$value mixed

Throws:


__isset

public __isset(mixed $name): bool

Parameters:

Parameter Type Description
$name mixed


Automatically generated on 2025-10-13