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
Located at Cake/Log/Engine/ConsoleLog.php
Copyright: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
License: MIT License
Located at Cake/Log/Engine/ConsoleLog.php
Method Detail
__constructsource public
__construct( array $config array() )
Constructs a new Console Logger.
Config
-
types
string or array, levels the engine is interested in -
scopes
string or array, scopes the engine is interested in -
stream
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
CakeLogException
CakeLogException
Overrides
BaseLog::__construct()
writesource public
write( string $type , string $message )
Implements writing to console.
Parameters
- string
$type
- The type of log you are making.
- string
$message
- The message you want to log.
Returns
boolean
success of write.
Methods inherited from BaseLog
configsource 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 in -
scopes
string or array, scopes the engine is interested in
Parameters
- array
$config
optional array() - engine configuration
Returns
array
array
Properties summary
Properties inherited from BaseLog
© 2005–2016 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
http://api.cakephp.org/2.7/class-ConsoleLog.html