Download the PHP package dziki/monolog-sentry-bundle without Composer

On this page you can find all versions of the php package dziki/monolog-sentry-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package monolog-sentry-bundle

Monolog Sentry Bundle

Latest Stable Version Build Status Coverage Status Scrutinizer Code Quality SensioLabsInsight License FOSSA Status

Bundle for appending useful data to Monolog log records like username, parsed user-agent header, host name, Symfony version, commit hash and a lot more - you can provide custom tags to be added to all your logs.

Installation

Install bundle with composer require dziki/monolog-sentry-bundle command.

TL;DR

Comparison of exactly same error handled by default monolog raven handler with sentry/sentry package client with bundle turned off and on with some basic config. As you can see - after turning bundle on - browser, user, breadcrumbs and some valuable tags showed up, making your error logs much easier to read.

Before

before

After

after

Enable the Bundle

Add entry to config/bundles.php:

or to app/AppKernel.php

Configuration

Default configuration does nothing, You need to adjust it manually according to Your needs:

You can turn on logging user context by setting value to true - it requires symfony/security-bundle package. user_agent_parser requires valid user agent header parser service as value. Parsing user agent takes about 0.1ms (up to 1ms using native parser) for every request, so...

Caching once parsed User Agents

Caching is supported when service implementing Psr\SimpleCache\CacheInterface is provided under cache config entry. Starting from version 4.1 of Symfony there is default simple cache service cache.app.simple, in previous versions you need to define own service:

Custom tags

You can extend amount of logged data by adding custom tags. For example, for logging Symfony version, setting useful Sentry environment and server name you should modify config to this:

Full basic config

User Agent parser

Bundle supports two parsers:

Configurable through user_agent_parser value, respectively phpuseragent or native. You can also add own, by providing name of service implementing ParserInterface.

Hints

License

MonologSentryBundle is released under the MIT license.

FOSSA Status


All versions of monolog-sentry-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
psr/simple-cache Version ^1.0
psr/simple-cache-implementation Version ^1.0
symfony/dependency-injection Version ^4.2|^5.0
symfony/monolog-bundle Version ^3.3
monolog/monolog Version ^1
symfony/monolog-bridge Version ^4.2|^5.0
sentry/sentry Version ^1.9.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dziki/monolog-sentry-bundle contains the following files

Loading the files please wait ....