Class ConsoleLog
Console logging. Writes logs to console output.
- BaseLog implements CakeLogInterface
- ConsoleLog
Package: Cake\Log\Engine
Copyright: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
License: MIT License
Location: Cake/Log/Engine/ConsoleLog.php
Copyright: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
License: MIT License
Location: Cake/Log/Engine/ConsoleLog.php
Properties summary
-
$_output
protectedOutput stream
Inherited Properties
Method Summary
-
__construct() public
Constructs a new Console Logger. -
write() public
Implements writing to console.
Method Detail
__construct() public ¶
__construct( array $config = array() )
Constructs a new Console Logger.
Config
types
string or array, levels the engine is interested inscopes
string or array, scopes the engine is interested instream
the path to save logs on.outputAs
integer or ConsoleOutput::[RAW|PLAIN|COLOR]
Parameters
- array $config optional array()
- Options for the FileLog, see above.
Throws
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