elFinderSimpleLogger
in package
example logger class Demonstrate how to work with elFinder event api.
Tags
Table of Contents
- $file : string
- Log file path
- __construct() : mixed
- constructor
- log() : void|true
- Create log record
- write() : void
- Write log into file
Properties
$file
Log file path
protected
string
$file
= ''
Methods
__construct()
constructor
public
__construct( $path) : mixed
Parameters
Tags
Return values
mixed —log()
Create log record
public
log(string $cmd, array<string|int, mixed> $result, array<string|int, mixed> $args, elFinder $elfinder) : void|true
Parameters
- $cmd : string
-
command name
- $result : array<string|int, mixed>
-
command result
- $args : array<string|int, mixed>
-
command arguments from client
- $elfinder : elFinder
-
elFinder instance
Tags
Return values
void|true —write()
Write log into file
protected
write(string $log[, bool $eol = false ]) : void
Parameters
- $log : string
-
log record
- $eol : bool = false