|All requests||>||Create a logger to an application||>||Request new recommendation||>||Featured requests||>||No recommendations|
by Romdhan Romeo KH - 7 months ago (2023-05-03)
I need a logger class to insert in file or database.With this class we can detail of actions of application and what can be wrong.
SLogger is PSR3 compliant. Simple to use, php 8.1 required.
Support file logging for now, but you can easily create a database manager for your needs.
This package contains classes to log to different targets in various formats. In addition here is an interesting artvle about logging in an application: https://www.phpclasses.org/blog/package/11743/post/1-PSR3-logging-in-a-PHP-application.html
try this class: you instantiate it with three input parameters which are, in the order:
Using PDO, this stylish package can log application messages to different containers, including files and database tables.
It provides interfaces compliant with the PHP Standards Recommendation 3 (PSR-3). So you can switch between different storage containers according to your application needs.