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 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
License: License (http://www.opensource.org/licenses/mit-license.php)
Location: Cake/Log/Engine/FileLog.php
Copyright: Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
License: License (http://www.opensource.org/licenses/mit-license.php)
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