gremo
gremo

Reputation: 48477

PHP good log library?

Is there any good log library for message, warning and errors flogging for PHP?AFAIK error_log is only used for logging errors but i need to store also debug messages.

And should work with CLI. Thanks

Upvotes: 10

Views: 16622

Answers (3)

Mark Baker
Mark Baker

Reputation: 212522

Personally I appreciate the flexibility of log4php

Upvotes: 5

Marc B
Marc B

Reputation: 360872

error_log() can write to arbitrary files...

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

Upvotes: 5

spider
spider

Reputation: 1178

I suggest you to have a look at Monolog

Upvotes: 14

Related Questions