Is PHP a good log library?

Is there a good library of logs for messages, warnings and flogging errors for PHP? AFAIK error_log is only used for logging errors, but I need to also store debug messages.

And should work with CLI. Thanks

+6
source share
3 answers

Personally, I appreciate the flexibility of log4php

+3
source

I suggest you take a look at Monolog

+9
source

error_log() can be written to arbitrary files ...

 error_log('Something blew up!', 3, '/some/path/debug.txt'); 
+4
source

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


All Articles