Download the PHP package fei/logger-package without Composer
On this page you can find all versions of the php package fei/logger-package. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fei/logger-package
More information about fei/logger-package
Files in fei/logger-package
Package logger-package
Short Description Logger client package integration for Objective PHP applications
License proprietary
Informations about the package logger-package
Logger Package
This package provide Logger Client integration for Objective PHP applications.
Installation
Logger Package needs PHP 7.0 or up to run correctly.
You will have to integrate it to your Objective PHP project with composer require fei/logger-package
.
Integration
As shown below, the Logger Package must be plugged in the application initialization method.
The Logger Package create a Logger Client service that will be consumed by the application's middlewares.
IMPORTANT : this package must be plugged at the first step (in this case, bootstrap).
You can run this package in an other step. To do this, you just need to do something like that :
identifier.service
: represents the service name of logger (defaultlogger.client
)my.step
: represents the step where the service will be run, in this case, you can putinit
,auth
,route
,rendering
(defaultbootstrap
)
Application configuration
Create a file in your configuration directory and put your Logger configuration as below:
In the previous example you need to set this configuration:
LoggerClientConfig
: the parameter represents the URL where the API can be contacted in order to send the logsBeanstalkTransportConfig
: represents the service id of beanstalk
Please check out logger-client
documentation for more information about how to use this client.