Skip to content

markoph/nette-sentry

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nette Sentry

Tracy logger extension capable of logging messages and errors to Sentry.

Note: If you have debug mode enabled in your application, logger will only send \Tracy\Debugger::log() messages to sentry. Any exception ending with Tracy's blue screen is not going to be logged as you can see the exception details directly.

Installation

Install package via Composer:

composer require tomaj/nette-errbit

Configuration

Enable and configure the extension in Nette config file:

extensions:
	# ...
	sentry: Crm\SentryModule\DI\SentryExtension

sentry:
    dsn: https://[email protected]/3 # required
    environment: production # optional, defaults to "local"
    user_fields: # optional, defaults to empty array; Nette's identity ID is being sent automatically
        - email

Usage

Once enabled as extension, you can continue to throw exceptions without any change. To log message please use \Tracy\Debugger::log() method.

About

Nette Sentry logger extension

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 97.8%
  • Makefile 2.2%