ConsoleLog (class)
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
protected
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
-
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
Overrides
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
-
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
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.
http://api.cakephp.org/2.8/class-ConsoleLog.html