Download the PHP package scau009/deferred-logger-bundle without Composer

On this page you can find all versions of the php package scau009/deferred-logger-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 deferred-logger-bundle

DeferredLoggerBundle

Install

Require the bundle via composer (when published) or add to your composer.json and composer install.

Register bundle in config/bundles.php:

Configure (optional)

Features

1. Automatic SQL Logging

When enable_sql_logging: true, the bundle automatically captures all Doctrine SQL queries with:

No need to manually call DeferredLogger::contextSql() anymore!

2. Distributed Tracing Support

The bundle provides production-ready distributed tracing with the following features:

Trace Context Propagation

Automatically extracts trace IDs from incoming requests, supporting multiple standards:

  1. W3C Trace Context (traceparent header) - Industry standard
  2. X-Trace-ID - Common in microservices
  3. X-Request-ID - Used by Nginx, load balancers
  4. X-Correlation-ID - Alternative correlation header

If no trace ID is found, a new one is automatically generated.

Response Header Injection

When inject_trace_id_in_response: true (default), the bundle adds trace headers to every response:

This allows:

Microservices Integration

Service A → Service B example:

Service B will automatically pick up the trace ID from the header and use it in its logs!

Long-Running Process Support (Swoole/RoadRunner)

The bundle properly resets trace context on each request:

Log Output Format

All logs include comprehensive trace information:

Integration with Tracing Systems

The trace format is compatible with:

Best Practices

  1. API Gateway: Extract trace ID from incoming requests or generate at the edge
  2. Propagate Downstream: Always pass X-Trace-ID to downstream services
  3. Log Aggregation: Use trace_id to group logs across services (e.g., ELK, Datadog)
  4. Frontend Integration: Return trace ID to clients for support tickets
  5. Monitoring: Create dashboards grouped by trace_id for request flow visualization

3. Symfony Messenger Integration

Automatic trace propagation across async messages!

When enable_messenger_trace: true (default), the bundle automatically:

How It Works

  1. Message Dispatch: When you dispatch a message, the current trace context is automatically attached as a TraceContextStamp
  2. Async Processing: When a worker processes the message, the trace context is restored
  3. Child Spans: Async operations create child spans, maintaining the parent-child relationship

Example

Benefits

Configuration

Advanced: Manual Trace Control

If needed, you can access trace info in handlers:

Trace Flow Visualization

All logs searchable by trace_id: 550e8400 in your log aggregation system!


All versions of deferred-logger-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
symfony/framework-bundle Version ^5.4|^6.0|^7.0
monolog/monolog Version ^2.0|^3.0
symfony/uid Version ^5.4|^6.0|^7.0
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 scau009/deferred-logger-bundle contains the following files

Loading the files please wait ...