mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Added links to book
This commit is contained in:
parent
53447fe2fb
commit
49bdde88d2
1 changed files with 3 additions and 0 deletions
|
@ -70,6 +70,7 @@ App::uses('LogEngineCollection', 'Log');
|
||||||
* on scopes
|
* on scopes
|
||||||
*
|
*
|
||||||
* @package Cake.Log
|
* @package Cake.Log
|
||||||
|
* @link http://book.cakephp.org/2.0/en/core-libraries/logging.html#logging
|
||||||
*/
|
*/
|
||||||
class CakeLog {
|
class CakeLog {
|
||||||
|
|
||||||
|
@ -183,6 +184,7 @@ class CakeLog {
|
||||||
* @param array $config Array of configuration information for the logger
|
* @param array $config Array of configuration information for the logger
|
||||||
* @return bool success of configuration.
|
* @return bool success of configuration.
|
||||||
* @throws CakeLogException
|
* @throws CakeLogException
|
||||||
|
* @link http://book.cakephp.org/2.0/en/core-libraries/logging.html#creating-and-configuring-log-streams
|
||||||
*/
|
*/
|
||||||
public static function config($key, $config) {
|
public static function config($key, $config) {
|
||||||
if (!preg_match('/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/', $key)) {
|
if (!preg_match('/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/', $key)) {
|
||||||
|
@ -398,6 +400,7 @@ class CakeLog {
|
||||||
* @param string|array $scope The scope(s) a log message is being created in.
|
* @param string|array $scope The scope(s) a log message is being created in.
|
||||||
* See CakeLog::config() for more information on logging scopes.
|
* See CakeLog::config() for more information on logging scopes.
|
||||||
* @return bool Success
|
* @return bool Success
|
||||||
|
* @link http://book.cakephp.org/2.0/en/core-libraries/logging.html#writing-to-logs
|
||||||
*/
|
*/
|
||||||
public static function write($type, $message, $scope = array()) {
|
public static function write($type, $message, $scope = array()) {
|
||||||
if (empty(self::$_Collection)) {
|
if (empty(self::$_Collection)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue