PHP Class Pimcore\Log\ApplicationLogger

Mostra file Open project: pimcore/pimcore

Protected Properties

Property Type Description
$component null
$fileObject null
$instances array
$loggers array
$relatedObject null
$relatedObjectType string

Public Methods

Method 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 )

Protected Methods

Method Description
handleLog ( $level, $message, $params )
resolveLoggingSource ( ) : string Resolve logging source

Method Details

addWriter() public method

public addWriter ( $writer )
$writer

alert() public method

public alert ( string $message )
$message string

critical() public method

public critical ( string $message )
$message string

debug() public method

public debug ( string $message )
$message string

emergency() public method

public emergency ( string $message )
$message string

error() public method

public error ( string $message )
$message string

getDbLogger() public static method

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

getInstance() public static method

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

handleLog() protected method

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

info() public method

public info ( string $message )
$message string

log() public method

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

logException() public method

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

notice() public method

public notice ( string $message )
$message string

resolveLoggingSource() protected method

Resolve logging source
protected resolveLoggingSource ( ) : string
return string

setComponent() public method

public setComponent ( string $component ) : void
$component string
return void

setFileObject() public method

public setFileObject ( $fileObject ) : void
return void

setRelatedObject() public method

public setRelatedObject ( $relatedObject ) : void
return void

warning() public method

public warning ( string $message )
$message string

Property Details

$component protected_oe property

protected null $component
return null

$fileObject protected_oe property

protected null $fileObject
return null

$instances protected_oe static_oe property

protected static array $instances
return array

$loggers protected_oe property

protected array $loggers
return array

$relatedObject protected_oe property

protected null $relatedObject
return null

$relatedObjectType protected_oe property

protected string $relatedObjectType
return string