craftix/swoole-logger

A high-performance, asynchronous logger built with PHP and Swoole

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/craftix/swoole-logger

v1.0.1 2025-07-11 23:49 UTC

This package is auto-updated.

Last update: 2025-12-12 00:37:34 UTC


README

A high-performance, non-blocking logger designed for Swoole applications in PHP. Built for speed and designed to handle logs asynchronously with minimal overhead.

🧠 Ideal for real-time applications, microservices, game servers, and long-running daemons built with PHP + Swoole.

🚀 Features

  • Asynchronous logging with optional buffer
  • Zero I/O blocking during log write
  • Structured log data (level, tags, timestamp, service name)
  • Supports multiple output printers (default: Console)
  • Color-coded logs by level
  • Easily extensible for custom outputs (e.g., File, Elasticsearch)
  • Lightweight and production-ready

📦 Installation

composer require craftix/logger