class LogServiceProvider extends ServiceProvider

Properties

protected $plugin Instance of main plugin. from ServiceProvider
protected string $filename Log filename.
protected string $path Log complete path.
protected string $log Available Settings: "single", "daily", "errorlog".
protected string $logLevel What we can loggin.
protected array $levels The Log levels.
protected array $colors The Log levels colors.

Methods

void
register()

Register the service provider.

__construct($plugin)

LogServiceProvider constructor.

__call(string $method, array $parameters)

Dynamically handle missing method calls.

write(string $level = 'debug', mixed $message = '', array $context = [])

Write the log.

Details

at line 116
void register()

Register the service provider.

Return Value

void

at line 81
__construct($plugin)

LogServiceProvider constructor.

Parameters

$plugin

at line 130
__call(string $method, array $parameters)

Dynamically handle missing method calls.

We are overridding the parent method.

Parameters

string $method
array $parameters

at line 151
protected write(string $level = 'debug', mixed $message = '', array $context = [])

Write the log.

Parameters

string $level
mixed $message
array $context