Property | Type | Description | |
---|---|---|---|
$options | array | Adapter options. | |
$path | string | Path to the directory where log files will be saved. No trailing slash. |
Method | Description | |
---|---|---|
__construct ( string $path, array $options = [] ) | Class constructor. | |
begin ( ) | ||
commit ( ) | ||
logInternal ( string $message, integer $type, integer $time, array $context = [] ) | Writes the log to the file itself | |
rollback ( ) |
Method | Description | |
---|---|---|
getTypeString ( integer $type ) : string | getTypeString |
public __construct ( string $path, array $options = [] ) | ||
$path | string | Directory path for saving the log files. |
$options | array | The following options are available: - extension (string) Extension for all log files. - prefix (string) Name prefix for all log files |
protected getTypeString ( integer $type ) : string | ||
$type | integer | |
return | string |
protected string $path | ||
return | string |