Download the PHP package artack/monolog-jira-handler without Composer
On this page you can find all versions of the php package artack/monolog-jira-handler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package monolog-jira-handler
ATTENTION: This repository is archived and therefore readonly.
JIRA Handler for Monolog
Developed by ARTACK WebLab GmbH in Zurich, Switzerland.
Introduction
This handler will write the logs to a JIRA instance. The handler will calculate a hash over the log-data except time sensitive data. It then will query the JIRA REST API to determe if there is already a JIRA Issue with the corresponding hash. If so, the handler will do nothing. If there is no issue matching the hash the handler will create a new issue with the content of the log entry.
Installation
You can install it through Composer:
Usage
With this setup each log entry is transmitted to JIRA.
If there are several log entries, it makes more sense to buffer the log entries first and transfer them all to JIRA in one step.
In a Symfony project
The use of this custom handler in a Symfony project is easy. First configure the JiraHandler as a service.
Secondly register your configured service as a monolog handler.
Handler configuration
The JiraHandler has several constructor arguments:
$hostname
: The hostname of your JIRA instance without the protocol (https:// is enforced).$username
: The username under which the issues are created (and any other operation on the JIRA REST API is performed).$password
: The password to authenticate against your JIRA instance$jql
: The JQL which is used to check if there is already an existing issue regarding the currently processed log entry. This allows to log the very same error on different php projects which will create an issue in a different JIRA project.$hashFieldName
: The name of the custom field which will store the md5 hash of the log entry$projectKey
: The project key under which a new issue will be created$issueTypeName
: The issue type which the new issue will use while being created$withComments
: (default:false
) Determines if subsequent same (same hash) log entries will be added as comments to the already created issue$counterFieldName
: (default:null
) If set this is the name of the custom field containing the number of recorded log entries$httpClient
: (default:null
) The HTTP Client which is used to talk to the JIRA REST API. Any HTTPlug client implementation is allowed. If not specified it will try to autodiscover a suitable client.
License
This library is licensed under the MIT License - see the LICENSE file for details
All versions of monolog-jira-handler with dependencies
monolog/monolog Version ^1.0
psr/http-message Version ^1.0
php-http/client-implementation Version ^1.0
php-http/httplug Version ^2.0
php-http/message Version ^1.0
php-http/message-factory Version ^1.0
php-http/discovery Version ^1.0
php-http/client-common Version ^2.0
ext-json Version *