Class FileLog
File Storage stream for Logging. Writes logs to different files based on the type of log it is.
- BaseLog implements CakeLogInterface
- FileLog
Package: Cake\Log\Engine
Copyright: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
License: MIT License
Location: Cake/Log/Engine/FileLog.php
Copyright: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
License: MIT License
Location: Cake/Log/Engine/FileLog.php
Properties summary
-
$_path
protectedstring
Path to save log files on.
Inherited Properties
Method Summary
-
__construct() public
Constructs a new File Logger. -
write() public
Implements writing to log files.
Method Detail
__construct() public ¶
__construct( array $config = array() )
Constructs a new File Logger.
Config
types
string or array, levels the engine is interested inscopes
string or array, scopes the engine is interested infile
log file namepath
the path to save logs on.
Parameters
- array $config optional array()
- $options Options for the FileLog, see above.
Overrides
Methods inherited from BaseLog
config() public ¶
config( array $config = array() )
Sets instance config. When $config is null, returns config array
Config
types
string or array, levels the engine is interested inscopes
string or array, scopes the engine is interested in
Parameters
- array $config optional array()
- engine configuration
Returns
array