Download the PHP package 401clicks/laravel-logger without Composer

On this page you can find all versions of the php package 401clicks/laravel-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 laravel-logger

401 Clicks Laravel Logger

Simple log aggregation for Laravel applications. Send your logs to 401 Clicks with just a few environment variables.

Installation

Quick Start

Add these to your .env file:

That's it! Your logs will now be sent to 401 Clicks.

Configuration

Environment Variables

Variable Description Default
CLICKS_API_TOKEN Your API token from project settings required
CLICKS_LOG_URL API endpoint (for self-hosted) https://logs.401clicks.com/api/v1/logs
CLICKS_LOG_LEVEL Minimum log level to send debug
CLICKS_BATCH_SIZE Number of logs to batch 10
CLICKS_FLUSH_INTERVAL Max seconds between flushes 5
CLICKS_MASKING_ENABLED Enable/disable data masking true
CLICKS_MASKING_STYLE Masking style: full, partial, or hash full

Publishing Config

To customize the configuration:

Manual Channel Configuration

If you prefer to configure the channel manually in config/logging.php:

Usage

Once configured, just use Laravel's standard logging:

Using with Stack Channel

The recommended setup uses Laravel's stack channel to log locally AND send to 401 Clicks:

This way you keep local logs while also sending them to 401 Clicks.

Logging to Clicks Only

To only send logs to 401 Clicks:

Sensitive Data Masking

The logger automatically masks sensitive data before it leaves your application. This is the most secure approach as PII and credentials never reach any external service.

Default Behavior

By default, masking is enabled and will detect and mask:

Configuration

Configure masking via environment variables or the config file:

Available masking styles:

Style Example Input Example Output
full (default) 4111111111111111 [CREDIT_CARD]
partial 4111111111111111 ****1111
hash 4111111111111111 [a3f8b2c1]

Custom Patterns

Add custom patterns in your config/clicks-logger.php:

Enabling Additional Patterns

To mask email addresses or IP addresses, update the patterns array:

Server-Side Fallback

401 Clicks also provides server-side masking for logs sent via cURL or other methods that don't use this package. Configure server-side masking in your project settings at 401clicks.com.

How It Works

Getting Your API Token

  1. Go to 401clicks.com
  2. Navigate to your project settings
  3. Create a new API token
  4. Copy the token to your .env file

Requirements

License

MIT License


All versions of laravel-logger with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^10.0|^11.0|^12.0
monolog/monolog Version ^3.0
guzzlehttp/guzzle Version ^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 401clicks/laravel-logger contains the following files

Loading the files please wait ...