PHP Class Pimcore\Log\ApplicationLogger

Afficher le fichier Open project: pimcore/pimcore

Protected Properties

Свойство Type Description
$component null
$fileObject null
$instances array
$loggers array
$relatedObject null
$relatedObjectType string

Méthodes publiques

Méthode Description
addWriter ( $writer )
alert ( string $message )
critical ( string $message )
debug ( string $message )
emergency ( string $message )
error ( string $message )
getDbLogger ( string $component = null, string $logLevel = "error" ) : static Shorthand to get a Db Logger
getInstance ( string $component = "default", $initDbHandler = false ) : ApplicationLogger
info ( string $message )
log ( mixed $level, string $message, array $context = [] ) : null
logException ( $message, $exceptionObject, string $priority = "alert", null $relatedObject = null, null $component = null )
notice ( string $message )
setComponent ( string $component ) : void
setFileObject ( $fileObject ) : void
setRelatedObject ( $relatedObject ) : void
warning ( string $message )

Méthodes protégées

Méthode Description
handleLog ( $level, $message, $params )
resolveLoggingSource ( ) : string Resolve logging source

Method Details

addWriter() public méthode

public addWriter ( $writer )
$writer

alert() public méthode

public alert ( string $message )
$message string

critical() public méthode

public critical ( string $message )
$message string

debug() public méthode

public debug ( string $message )
$message string

emergency() public méthode

public emergency ( string $message )
$message string

error() public méthode

public error ( string $message )
$message string

getDbLogger() public static méthode

Shorthand to get a Db Logger
public static getDbLogger ( string $component = null, string $logLevel = "error" ) : static
$component string
$logLevel string
Résultat static

getInstance() public static méthode

public static getInstance ( string $component = "default", $initDbHandler = false ) : ApplicationLogger
$component string
Résultat ApplicationLogger

handleLog() protected méthode

protected handleLog ( $level, $message, $params )

info() public méthode

public info ( string $message )
$message string

log() public méthode

public log ( mixed $level, string $message, array $context = [] ) : null
$level mixed
$message string
$context array
Résultat null

logException() public méthode

public logException ( $message, $exceptionObject, string $priority = "alert", null $relatedObject = null, null $component = null )
$message
$exceptionObject
$priority string
$relatedObject null
$component null

notice() public méthode

public notice ( string $message )
$message string

resolveLoggingSource() protected méthode

Resolve logging source
protected resolveLoggingSource ( ) : string
Résultat string

setComponent() public méthode

public setComponent ( string $component ) : void
$component string
Résultat void

setFileObject() public méthode

public setFileObject ( $fileObject ) : void
Résultat void

setRelatedObject() public méthode

public setRelatedObject ( $relatedObject ) : void
Résultat void

warning() public méthode

public warning ( string $message )
$message string

Property Details

$component protected_oe property

protected null $component
Résultat null

$fileObject protected_oe property

protected null $fileObject
Résultat null

$instances protected_oe static_oe property

protected static array $instances
Résultat array

$loggers protected_oe property

protected array $loggers
Résultat array

$relatedObject protected_oe property

protected null $relatedObject
Résultat null

$relatedObjectType protected_oe property

protected string $relatedObjectType
Résultat string