A set of logs with support for PHP?

Does anyone know a universal logging suite for PHP applications?

By “set” I mean a lightweight library of logging functions , as well as a mature back-end for viewing them.

The internal interface must be customizable and display log entries using features such as

  • Filter by date

  • Filter by event (warning, error, custom event)

  • Filter by category

  • User Filter

  • Filter out the appropriate database record (optional, I could add this myself)

I would like to use an engine such as a “log” for database entries inside my application - for example, as a diary for recording a vehicle, detailing events such as “phone call”, “customer interest”, “accident”, “repair” , "theft / damage" ....)

The ability to export log events through the PHP library (to display the event log in the application) is required. RSS / XML export will also be nice.

I am doing this myself at the moment in the application. I have never seen anything like this, so I understand that this is a long shot, but I am curious to find out if there is any third solution to this general problem.

+3
source share
1 answer

, Apache log4php :

Log4php - PHP Apache Software Foundation (ASF), Apache .

Log4PHP 2010 .

log4php :

  • xml properties ( , log4j).
  • , RollingFile, DailyFile, Echo, Console, Mail, PDO, PHP, Syslog NT Socket appenders.
  • , TTCC, Pattern, Html Xml Layouts.
  • (NDC) (MDC) .
+2

Source: https://habr.com/ru/post/1757672/


All Articles