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
-
$_outputprotectedOutput 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
typesstring or array, levels the engine is interested inscopesstring or array, scopes the engine is interested instreamthe path to save logs on.outputAsinteger 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
typesstring or array, levels the engine is interested inscopesstring or array, scopes the engine is interested in
Parameters
- array $config optional array()
- engine configuration
Returns
array