Download the PHP package digicademy/typo3-sentry-logs-writer without Composer

On this page you can find all versions of the php package digicademy/typo3-sentry-logs-writer. 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 typo3-sentry-logs-writer

TYPO3 Sentry Logs Writer

Packagist Downloads GitHub commit activity

A TYPO3 log writer that sends log records to the Sentry Logs API, so that they show up as structured logs in Sentry or GlitchTip.

It is intended as a companion to networkteam/sentry-client, which sets up the Sentry SDK and reports exceptions.

Why this exists

The Sentry Client for TYPO3 ships its own SentryLogWriter. That writer turns every log record into an error event via captureMessage(), so the records end up as issues only. It does not use the structured Logs API of the Sentry PHP SDK (\Sentry\logger()). That's what this small extension adds.

If needed, both writers can be used simultaneously:

SentryLogWriter (networkteam) SentryLogsWriter (this extension)
Ends up in Issues Logs
Grouping and alerts Yes No, a searchable stream
Good for Errors you want to act on Context, tracing what a request did

Requirements

Installation

Configuration

Add the writer it to LOG.writerConfiguration for every level it should handle, e.g., in config/system/additional.php:

TYPO3 can also configure writers per component (e.g. $GLOBALS['TYPO3_CONF_VARS']['LOG']['TYPO3']['CMS']['writerConfiguration']), which is the way to include or exclude specific parts of the system. See the TYPO3 logging documentation.

The DSN and all SDK options come from networkteam/sentry-client. If no DSN is configured, the writer does nothing.

Switching it off

To stop sending without removing the writer, return null from a before_send_log callback.

How it works

The SDK buffers log items. The writer registers a shutdown function on first use that flushes the buffer in one envelope. This covers frontend and backend requests as well as CLI commands and scheduler tasks.

Limitations

License

GPL-2.0-or-later.


All versions of typo3-sentry-logs-writer with dependencies

PHP Build Version
Package Version
Requires php Version 8.3 - 8.5
typo3/cms-core Version ^12.4 || ^13.4 || ^14.3
networkteam/sentry-client Version ^6.0
sentry/sentry Version ^4.31
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 digicademy/typo3-sentry-logs-writer contains the following files

Loading the files please wait ...