Return to Snippet

Revision: 57895
at June 14, 2012 01:34 by ryantxr

Initial Code
class Debug{
   function log($msg){
      file_put_contents('logfile.log', strftime('%Y-%m-%d %T'). ': '.$msg. "\n", FILE_APPEND);
// Usage: Debug::log('put something here');

Initial URL

Initial Description
This is a really simple logger that can be thrown into any project.

Initial Title
PHP Simple Logger

Initial Tags

Initial Language