‪TYPO3CMS  ‪main
TYPO3\CMS\Core\SysLog\Type Class Reference

Static Public Member Functions

static levelMap ()
 
static channelMap ()
 
static toChannel (int $type)
 
static toLevel (int $type)
 

Public Attributes

const DB = 1
 
const FILE = 2
 
const CACHE = 3
 
const EXTENSION = 4
 
const ERROR = 5
 
const SITE = 6
 
const SETTING = 254
 
const LOGIN = 255
 

Static Private Attributes

static array $channelMap
 
static array $levelMap
 

Detailed Description

A class defining possible logging types.

The logging type system is moving towards PSR-3-defined log levels and channels, this class might get removed without any further notice from TYPO3 v12.0. on.

Definition at line 27 of file Type.php.

Member Function Documentation

◆ channelMap()

static TYPO3\CMS\Core\SysLog\Type::channelMap ( )
static

Definition at line 71 of file Type.php.

References TYPO3\CMS\Core\SysLog\Type\$channelMap.

◆ levelMap()

static TYPO3\CMS\Core\SysLog\Type::levelMap ( )
static

Definition at line 63 of file Type.php.

References TYPO3\CMS\Core\SysLog\Type\$levelMap.

◆ toChannel()

static TYPO3\CMS\Core\SysLog\Type::toChannel ( int  $type)
static

◆ toLevel()

static TYPO3\CMS\Core\SysLog\Type::toLevel ( int  $type)
static

Member Data Documentation

◆ $channelMap

array TYPO3\CMS\Core\SysLog\Type::$channelMap
staticprivate
Initial value:
= [
self::DB => 'content',
self::FILE => 'file',
self::CACHE => 'default',
self::EXTENSION => 'default',
self::ERROR => 'php',
self::SITE => 'site',
self::SETTING => 'default',
self::LOGIN => 'user',
]

Definition at line 38 of file Type.php.

Referenced by TYPO3\CMS\Core\SysLog\Type\channelMap().

◆ $levelMap

array TYPO3\CMS\Core\SysLog\Type::$levelMap
staticprivate
Initial value:
= [
self::DB => LogLevel::INFO,
self::FILE => LogLevel::INFO,
self::CACHE => LogLevel::INFO,
self::EXTENSION => LogLevel::INFO,
self::ERROR => LogLevel::ERROR,
self::SITE => LogLevel::INFO,
self::SETTING => LogLevel::INFO,
self::LOGIN => LogLevel::INFO,
]

Definition at line 49 of file Type.php.

Referenced by TYPO3\CMS\Core\SysLog\Type\levelMap().

◆ CACHE

const TYPO3\CMS\Core\SysLog\Type::CACHE = 3

Definition at line 31 of file Type.php.

◆ DB

const TYPO3\CMS\Core\SysLog\Type::DB = 1

Definition at line 29 of file Type.php.

◆ ERROR

const TYPO3\CMS\Core\SysLog\Type::ERROR = 5

Definition at line 33 of file Type.php.

◆ EXTENSION

const TYPO3\CMS\Core\SysLog\Type::EXTENSION = 4

Definition at line 32 of file Type.php.

◆ FILE

const TYPO3\CMS\Core\SysLog\Type::FILE = 2

Definition at line 30 of file Type.php.

◆ LOGIN

const TYPO3\CMS\Core\SysLog\Type::LOGIN = 255

◆ SETTING

const TYPO3\CMS\Core\SysLog\Type::SETTING = 254

Definition at line 35 of file Type.php.

◆ SITE