PHPackages                             super-kernel/logger - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. super-kernel/logger

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

super-kernel/logger
===================

The logger component for super-kernel.

v0.0.4(6mo ago)039↓33.3%3MITPHPPHP &gt;=8.4

Since Oct 10Pushed 6mo agoCompare

[ Source](https://github.com/super-kernel/logger)[ Packagist](https://packagist.org/packages/super-kernel/logger)[ RSS](/packages/super-kernel-logger/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (9)Versions (5)Used By (3)

 **English** | [中文文档](README.zh-CN.md)

super-kernel/logger
===================

[](#super-kernellogger)

**Log component of SuperKernel framework**

[![License](https://camo.githubusercontent.com/8bb50fd2278f18fc326bf71f6e88ca8f884f72f179d3e555e20ed30157190d0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e737667)](LICENSE)[![PHP](https://camo.githubusercontent.com/3e40355d4b2264eabe393a68b0170731d7de406c68341066ff309755ab9224c2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345253344382e342d626c7565)](https://www.php.net/)[![Monolog](https://camo.githubusercontent.com/fea074265129e15c529ad09ea1fd202257999a2ce2ea893baa37858d7611d8fb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6f6e6f6c6f672d253545332e392d6f72616e6765)](https://github.com/Seldaek/monolog)[![SuperKernel](https://camo.githubusercontent.com/eaf059f52fec590e3a47f1a7197635b4b9551c45b8c778b116017fc678b0f385/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73757065722d2d6b65726e656c2d636f72652d6c6967687467726579)](https://github.com/super-kernel)

---

Overview
--------

[](#overview)

`super-kernel/logger` is the official logging component of SuperKernel, providing two types of logging capabilities:

- **Standard Output Logging**: By default, it outputs to the terminal (`stdout`) via the `Logger` class, suitable for development and CLI environments.
- **Monolog Extended Logging**: Automatically creates developer-defined multichannel log instances via `LoggerFactory`, supporting various Handlers such as file, network, and queues.

This component conforms to the [psr/log](https://github.com/php-fig/log) standard and is seamlessly integrated with SuperKernel's dependency injection system and configuration system.

---

Installation
------------

[](#installation)

```
composer require super-kernel/logger
```

Configuration
-------------

[](#configuration)

> This component only scans properties with `public` visibility in classes annotated with `#[Configuration(LoggerConfigInterface::class)]`.

### Single `handler` configuration

[](#single-handler-configuration)

```
