Semantic MediaWiki and related extensions
Public Member Functions | Public Attributes | Protected Attributes | List of all members
SMW\Utils\Logger Class Reference
Inheritance diagram for SMW\Utils\Logger:
Inheritance graph
[legend]
Collaboration diagram for SMW\Utils\Logger:
Collaboration graph
[legend]

Public Member Functions

 __construct (LoggerInterface $logger, $role=self::ROLE_DEVELOPER)
 
 log ( $level, $message, array $context=[])
 

Public Attributes

const ROLE_DEVELOPER = 'developer'
 
const ROLE_USER = 'user'
 
const ROLE_PRODUCTION = 'production'
 

Protected Attributes

 $logger
 
 $role
 

Detailed Description

GNU GPL v2+

Since
3.0
Author
mwjames

Constructor & Destructor Documentation

◆ __construct()

SMW\Utils\Logger::__construct ( LoggerInterface  $logger,
  $role = self::ROLE_DEVELOPER 
)
Since
3.0
Parameters
LoggerInterface$logger
string$role

Member Function Documentation

◆ log()

SMW\Utils\Logger::log (   $level,
  $message,
array  $context = [] 
)
Since
3.0

The documentation for this class was generated from the following file:

About | General disclaimer | Privacy policy