On this page
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
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
$configoptional array() - Options for the FileLog, see above.
Throws
CakeLogExceptionCakeLogException
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
booleansuccess of write.
Methods inherited from BaseLog
configsource 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
$configoptional array() - engine configuration
Returns
arrayarray
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