Currently, it is developed to make it easy to understand. It is a custom logging method and is written to a file every day. The recorded data includes time, user ID, log level, error location, and error information analysis. A process is used to read log files. Sending a high error level to mail... is currently under development. To make it easy for you to understand, it is a custom logging method, which is written to a file every day.
The recorded data includes: time, user ID, log level, error location, and error message.
Analysis involves a process to read log files. Send high error levels to your mailbox every day.
Currently, there are about 3 m log files every day. If it is inconvenient to analyze all the logs, you are prepared to put the data in es.
But it seems very nonstandard, and PHP should have such a wheel.
Logging and analysis toolsAre you recommended?
Analysis is important.
Reply content:
Currently, it is developed to make it easy to understand. It is a custom logging method and is written to a file every day.
The recorded data includes: time, user ID, log level, error location, and error message.
Analysis involves a process to read log files. Send high error levels to your mailbox every day.
Currently, there are about 3 m log files every day. If it is inconvenient to analyze all the logs, you are prepared to put the data in es.
But it seems very nonstandard, and PHP should have such a wheel.Logging and analysis toolsAre you recommended?
Analysis is important.
I use seaslog to record different error levels to different files. If the error level is too high, send an email prompt in the code
Sumologic?
First, use the grok of Logstash to make the format ready, and then store it in elasticsearch. Then, use Kibana to visualize the data.
composer require monolog/monolog
SentryIt can fully meet the requirements, but it is not used to record logs. It is used to record error logs. When an error level is found to be high, an alarm will be reported to your team! Now you haveDockerIt is very convenient to build one by yourself.