Handling PHP Logging with Monolog


Part of Screencast Series: Exploring PHP


Published January 2016

Store and search through your data with ease

Working with large log files is both cumbersome and time-consuming. Wouldn’t it be great if you could quickly filter your application’s log messages by date, or if you could directly view only those messages which have a particular tag? Well, you can, if you use Monolog.

Monolog is a PHP package which allows you to send log messages to databases, email addresses, files and even web services. In this screencast, I am going to show you how to send a PHP project’s log messages to a MySQL database.

Code sample for this screencast can be found at: https://github.com/learnable-content/Hathy-screencasts/tree/MonologScreencast

SPONSORS
Free Using Shorthand if-else Conditionals in PHP to Make Code More Succinct 4:07
Free Avoid CSRF Exploits in Your PHP Apps Today 6:52
Handling PHP Logging with Monolog 7:55

Comments

Have your say! or become a member now to take part in the discussion

Loading...
Meet your instructor
Ashraff Hathibelagal

Ashraff is a blogger and freelance programmer, who loves tinkering with new frameworks, SDKs and devices. He has been building enterprise applications for various multinational organizations using HTML, PHP and Java for over a decade now, something he still enjoys. Lately, Ashraff has become obsessed with newer languages such as Ruby and Kotlin, never missing a chance to use them in his projects.