Download the PHP package gopimosali/global-logger without Composer

On this page you can find all versions of the php package gopimosali/global-logger. 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 global-logger

GlobalLogger for Laravel

A powerful, production-ready Laravel logging package that provides universal request tracking and multi-provider support with automatic correlation across AWS CloudWatch/X-Ray, Datadog, Oracle Cloud, Database, and file-based logs.

🎯 Key Features


📦 Installation

Publish Configuration

Publish Database Migration (if using Database provider)


🚀 Quick Start

1. Enable a Provider

Edit your .env file:

2. Use It (No Code Changes!)

3. See the Results

All your logs now automatically include request_id across all enabled providers:


🎓 Understanding request_id vs Traces

request_id (Automatic - You Don't Do Anything!)

The request_id is automatically generated once per request and included in every log. It allows you to correlate all logs from a single request.

You don't need to do anything - it just works!

Search all logs from one request:


Traces (Optional - For Performance Tracking)

Traces are optional and used to measure how long specific operations take. Use them when you want to see:

Option 1: Automatic Tracing (Recommended)

Enable automatic tracing in .env:

Now all HTTP requests, database queries, queue jobs, and emails are automatically traced - no code changes needed!

Option 2: Manual Tracing (For Custom Operations)

Wrap important operations with manual traces:

See traces in:


📊 Complete Example: E-Commerce Checkout

Here's a complete example showing both automatic request_id correlation and optional performance tracing:

What You See in AWS X-Ray:

What You See in CloudWatch Logs:

Search all logs from this checkout:

Returns ALL logs and traces from start to finish!


🔧 Provider Configuration

AWS CloudWatch + X-Ray

Install AWS SDK:

Features:


Datadog

Install Datadog PHP:

Features:


Oracle Cloud Logging

Complete integration with Oracle Cloud Infrastructure (OCI) Logging service with automatic request signing.

Quick Setup

Detailed Setup Steps

1. Create a Log in OCI Console:

2. Generate OCI API Key:

3. Add API Key to OCI User:

4. Create IAM Policy:

5. Set File Permissions (Important!):

Regional Endpoints

Choose the correct endpoint for your OCI region:

Testing Oracle Cloud Logging

Features:

Troubleshooting:

Common issues and solutions:


Database

Features:

Publish and run migration:


Custom File Logging

Features:

Enable Stdout Output (Docker/Kubernetes)

For containerized environments, you can output logs to stdout with full GlobalLogger context:

Or configure per environment in .env:

Configuration in config/globallogger.php:

What you get in stdout:

All logs are output as JSON with full context:

Benefits:

Test stdout logging:


🎯 When to Use What?

Use request_id (Always Automatic!)

You don't need to do anything - it's automatic!

Perfect for:

Search examples:


Use Automatic Tracing (Recommended!)

Just enable it - no code changes needed!

Perfect for:

What gets traced:


Use Manual Tracing (When Needed)

Wrap specific operations when automatic tracing isn't enough

Perfect for:

Example:


📚 Advanced Usage

Passing request_id to External Services

Adding Custom Context

Converting request_id Formats


🔍 Searching and Querying

AWS CloudWatch Logs Insights

AWS X-Ray

Datadog

Database (Eloquent)


🔇 Noise Filtering

GlobalLogger provides configurable filtering to suppress noisy framework-internal events from polluting your logs.

Cache Key Filtering

Laravel's queue workers poll cache keys like illuminate:queue:restart every few seconds per worker. With multiple Horizon workers, this generates thousands of cache miss log entries daily — all expected, harmless, and unactionable.

Configure ignored_keys in config/globallogger.php to silence them:

Supports exact matches and wildcard patterns using * (powered by Str::is()).

Database Query Filtering

Suppress noisy or irrelevant queries from being logged, even if they exceed the slow query threshold:

Both ignored_queries (wildcard SQL patterns) and ignored_tables (table name matching) are case-insensitive.


🛠️ Troubleshooting

Logs Not Appearing

Check provider is enabled:

Check file permissions:

Check AWS credentials:

request_id Not Showing

Ensure middleware is registered:

Middleware should show Gopimosali\GlobalLogger\Middleware\LogContextMiddleware.

Traces Not Appearing in X-Ray

Check X-Ray daemon is running:

Check X-Ray is enabled:


📖 Additional Documentation


🤝 Contributing

Contributions are welcome! Please see CONTRIBUTING.md for details.


📄 License

The MIT License (MIT). Please see LICENSE for more information.


🙏 Credits

Created by Gopi Mosali

Special thanks to the Laravel community for inspiration and feedback.


⭐ Show Your Support

If this package helps you, please star it on GitHub! ⭐


All versions of global-logger with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1|^8.2|^8.3
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/log Version ^10.0|^11.0|^12.0
ramsey/uuid Version ^4.7
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 gopimosali/global-logger contains the following files

Loading the files please wait ...