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 stream
$_outputprotected
Inherited Properties
Method Summary
- __construct() publicConstructs a new Console Logger.
- write() publicImplements writing to console.
Method Detail
__construct()source public
__construct( array $config array() )
Constructs a new Console Logger.
Config
-
typesstring or array, levels the engine is interested in -
scopesstring or array, scopes the engine is interested in -
streamthe path to save logs on. -
outputAsinteger or ConsoleOutput::[RAW|PLAIN|COLOR]
Parameters
- array
$configoptional array() - Options for the FileLog, see above.
Throws
CakeLogExceptionOverrides
BaseLog::__construct() write()source 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
config()source public
config( array $config array() )
Sets instance config. When $config is null, returns config array
Config
-
typesstring or array, levels the engine is interested in -
scopesstring or array, scopes the engine is interested in
Parameters
- array
$configoptional array() - engine configuration
Returns
arrayProperties detail
© 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.
https://api.cakephp.org/2.9/class-ConsoleLog.html