Small Logger is a lightweight and flexible PHP logging library designed to meet a variety of logging needs. Whether you need to log messages to standard output, files (with log rotation), or remote HTTP services like Logstash, Small Logger offers a straightforward and highly customizable solution. Developers can easily extend its functionality by implementing custom formatters, output writers, and switch logic.
Key Features
-
Versatile Logging Outputs
Small Logger supports logging to standard output, files with optional log rotation, and HTTP services such as Logstash. This makes it suitable for a wide range of use cases, from simple command-line applications to complex distributed systems.
-
Customizable and Extensible
Small Logger is designed with extensibility in mind. Developers can implement custom formatters to control the format of log messages, output writers to define how logs are written, and switch logic to manage multiple log streams based on custom criteria.
-
Flexible Switch Logic
The SwitchLogicInterface allows for sophisticated logic to be applied when managing multiple log streams. Whether you need to route different log levels to different outputs or implement complex logging strategies based on dynamic data, Small Logger provides the tools to make it happen.
-
Ease of Use
Small Logger is easy to set up and use, making it a practical choice for developers who need a reliable logging solution without unnecessary complexity. It also allows the addition of shortcuts for even more convenient usage by end developers.
-
Swoole and OpenSwoole integration
Swoole's asynchronous features are implemented to handle large volumes of logs without compromising your application's performance.
A bundle for Symfony
The Small Logger Bundle for Symfony brings the power of Small Logger into your Symfony projects with ease. Designed to integrate seamlessly with Symfony's ecosystem, this bundle provides a straightforward way to implement advanced logging features without compromising on flexibility or performance.