LoggerService
class LoggerService extends Service
Logger service.
Properties
protected Application | $app | Application. | from Service |
protected Container | $container | Container. | from Service |
protected Config | $config | Config. | from Service |
Methods
register()
Registers the service.
array|null
getUserContext()
Get information about the current user.
array
getContext()
Get global logger context.
string
getStoragePath()
Returns the storage path.
StreamHandler
getStreamHandler()
Returns a stream handler.
SyslogHandler
getSyslogHandler()
Returns a syslog handler.
ErrorLogHandler
getErrorLogHandler()
Returns a error log handler.
HandlerInterface
getHandler(string $handler)
Returns a log handler.
Details
in Service at line 49
__construct(Application $app, Container $container, Config $config)
Constructor.
at line 139
register()
Registers the service.
at line 35
protected array|null
getUserContext()
Get information about the current user.
at line 63
protected array
getContext()
Get global logger context.
at line 80
protected string
getStoragePath()
Returns the storage path.
at line 92
protected StreamHandler
getStreamHandler()
Returns a stream handler.
at line 110
protected SyslogHandler
getSyslogHandler()
Returns a syslog handler.
at line 120
protected ErrorLogHandler
getErrorLogHandler()
Returns a error log handler.
at line 131
protected HandlerInterface
getHandler(string $handler)
Returns a log handler.