Skip to content
Advertisement

How do i save logs in php

How do i save logs in PHP? Is there any “magical” function available in php for doing so, or any library? Or should i have to fopen file everytime and dump in it? I want to save my logs in text file.

Thanks in advance 🙂

Advertisement

Answer

I wrote a simple class to do this. Maybe you’ll find it useful.

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement