wCMF 4.1
Guides
Getting started
Architecture
Model
Persistence
Presentation
Configuration
Security
I18n & l10n
Tests
Versions
4.1.x
4.0.x
API
Classes
Hierarchy
Code
Support
home
travis
build
iherwig
wcmf
src
wcmf
lib
core
impl
AbstractLogger.php
1
<?php
2
/**
3
* wCMF - wemove Content Management Framework
4
* Copyright (C) 2005-2020 wemove digital solutions GmbH
5
*
6
* Licensed under the terms of the MIT License.
7
*
8
* See the LICENSE file distributed with this work for
9
* additional information.
10
*/
11
namespace
wcmf\lib\core\impl
;
12
13
use
wcmf\lib\core\Logger
;
14
15
/**
16
* AbstractLogger is the abstract base class for Logger implementations.
17
*
18
* @author ingo herwig <ingo@wemove.com>
19
*/
20
abstract
class
AbstractLogger
implements
Logger
{
21
22
/**
23
* @see Logger::logByErrorType()
24
*/
25
public
function
logByErrorType
($type, $message) {
26
switch
($type) {
27
case
E_NOTICE:
28
case
E_USER_NOTICE:
29
case
E_STRICT:
30
case
E_DEPRECATED:
31
case
E_USER_DEPRECATED:
32
$this->
info
($message);
33
break
;
34
case
E_WARNING:
35
case
E_USER_WARNING:
36
$this->
warn
($message);
37
break
;
38
default
:
39
$this->
error
($message);
40
}
41
}
42
}
43
?>
wcmf\lib\core\impl
 
Definition:
namespaces.php:13
wcmf\lib\core\Logger\warn
warn($message)
Print a warn message.
wcmf\lib\core\Logger\info
info($message)
Print a info message.
wcmf\lib\core\impl\AbstractLogger
AbstractLogger is the abstract base class for Logger implementations.
Definition:
AbstractLogger.php:20
wcmf\lib\core\Logger
Interface for logger implementations.
Definition:
Logger.php:18
wcmf\lib\core\impl\AbstractLogger\logByErrorType
logByErrorType($type, $message)
Definition:
AbstractLogger.php:25
wcmf\lib\core\Logger\error
error($message)
Print a error message.