Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged log



« Prev 1 Next »
In this post you will learn how to log errors in database in cakephp.
0 1228 posted 11 years ago by kp32
Simple logger function
1 1233 posted 12 years ago by MikeDevDes
Tiny script to write a daily logfile with the serverload. Can be run every X minutes using a cron for example. Result in logfile: 13.40 | 2.45 2.45 2.43 13.45 | 1.62 2.02 2.25
0 1061 posted 14 years ago by remko
This class can log messages to a file. If the log file becomes too large (over 1MB), the class will archive it and will create new. If there are archives older than one month, they will be deleted automatically. In the future versions I will add th...
0 1300 posted 14 years ago by stz184
So i wanted to spit all my error_log(); and error_reporting(E_ALL); to syslog on my MacOSX and syslog would output it on a custom file.
0 1456 posted 14 years ago by sadus
I'm originally a sys admin and i love "tail - f /var/log/*" ... so i created a similar function in PHP that will allow me to view in real time what classes/functions/files/lines of my code is being run... The usage is really simple, just set a glo...
1 2041 posted 14 years ago by sadus
I’ve recently had to quickly parse an Apache log file, to get basic usage statistics for a site over a month and wanted the ability to quickly process any general logs and store them in a MySQL table, so I’ve made a small package class.log. In...
2 1763 posted 14 years ago by dom111
I written this code to parse apache log in common log formats. It may have problems with irresponsible formatting like non-concluded into quotes request line. I welcome any modifications to my snippet because it was written if short time and this is...
0 1175 posted 15 years ago by mpontus
Create log.txt in scripts directory and set permissions to 0666 before use.
0 1076 posted 15 years ago by Nek
4 1218 posted 16 years ago by iTony
1 1188 posted 16 years ago by Zver
0 787 posted 16 years ago by mischachen
Replace all mysql_query() calls in your project to debug_mysql_query() to see all mysql queries in Firebug console.
1 1367 posted 17 years ago by stancell
2 1089 posted 17 years ago by Tank
1 1344 posted 18 years ago by nicolaspar
« Prev 1 Next »