PHP Class AppserverIo\Appserver\Server\Contexts\StandardServerContext

Inheritance: extends AppserverIo\Server\Contexts\ServerContext
显示文件 Open project: appserver-io/appserver

Public Methods

Method Description
getLogger ( string $loggerType = self::DEFAULT_LOGGER_TYPE ) : Psr\Log\LoggerInterface Returns the logger instance with the passed type.
hasLogger ( string $loggerType ) : boolean Queries if the requested logger type is registered or not.

Method Details

getLogger() public method

Returns the logger instance with the passed type.
public getLogger ( string $loggerType = self::DEFAULT_LOGGER_TYPE ) : Psr\Log\LoggerInterface
$loggerType string The requested logger's type
return Psr\Log\LoggerInterface The logger instance

hasLogger() public method

Queries if the requested logger type is registered or not.
public hasLogger ( string $loggerType ) : boolean
$loggerType string The logger type we want to query
return boolean TRUE if the logger is registered, else FALSE