Class File_Handler
Class VSP_Log_Handler_File
- VSP\Core\Abstracts\Log_Handler implements VSP\Core\Interfaces\Log_Handler
- VSP\Modules\Logger\File_Handler
Namespace: VSP\Modules\Logger
Author: Varun Sridharan varunsridharan23@gmail.com
Located at includes/modules/logger/class-file-handler.php
Author: Varun Sridharan varunsridharan23@gmail.com
Located at includes/modules/logger/class-file-handler.php
public
|
#
__construct( boolean $sub_path = false, string|boolean|null $file_name = null, integer $log_size_limit = null )
VSP_Log_Handler_File constructor. |
public
|
|
public
boolean
|
|
protected static
string
|
#
format_entry( integer $timestamp, string $level, string $message, array $context )
Builds a log entry text from timestamp, level and message. |
protected
boolean
|
|
protected
boolean
|
|
public
boolean|string
|
|
public
boolean|string
|
|
protected
boolean
|
|
protected
|
|
protected
boolean
|
|
protected
boolean
|
|
protected
boolean
|
|
protected
|
|
public
boolean
|
|
public
boolean
|
|
public
|
format_time()
|
protected
boolean
|
$sub_path
sub_path |
#
false
|
protected
array
|
$handles
Stores open file handles. |
#
array()
|
protected
integer
|
$log_size_limit
File size limit for log files in bytes. |
|
protected
array
|
$cached_logs
Cache logs that could not be written. |
#
array()
|
protected
null
|
$file_name
|
#
null
|