FileBasedLogger
in package
implements
ILogger
Table of Contents
Interfaces
Constants
- LOG_FILE = STORAGE . 'log' . DIRECTORY_SEPARATOR . 'app.log'
Properties
- $logger : Logger
Methods
- __construct() : mixed
- FileBasedLogger constructor.
- debug() : void
- error() : void
- info() : void
- log() : void
- notice() : void
- warning() : void
Constants
LOG_FILE
public
mixed
LOG_FILE
= STORAGE . 'log' . DIRECTORY_SEPARATOR . 'app.log'
Properties
$logger
private
Logger
$logger
Methods
__construct()
FileBasedLogger constructor.
public
__construct(Logger $logger) : mixed
Parameters
- $logger : Logger
Tags
debug()
public
debug(string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $message : string
- $context : array<string|int, mixed> = []
error()
public
error(string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $message : string
- $context : array<string|int, mixed> = []
info()
public
info(string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $message : string
- $context : array<string|int, mixed> = []
log()
public
log(string $type, string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $type : string
- $message : string
- $context : array<string|int, mixed> = []
notice()
public
notice(string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $message : string
- $context : array<string|int, mixed> = []
warning()
public
warning(string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $message : string
- $context : array<string|int, mixed> = []