Benas Radzevicius
Benas Radzevicius

Reputation: 377

monologue retrieve logs programmatically with laravel 4

Simple question. Can i retrieve logs programmatically without inserting them into database with laravel 4? Something like: Log::get($date/$type/etc) or smth similar?

Upvotes: 2

Views: 323

Answers (1)

Kirill Fuchs
Kirill Fuchs

Reputation: 13696

Monolog does not provide an interface to read the log files neither does Laravel. However, you can use phps native SplFileObject class. And there is also this monolog-parser library

Upvotes: 1

Related Questions