Simple Logging in PHP
What if we get a simple code which logs for us about about activity. which logs your message as well as the User IP Address, User Agent as well as Referrer…
Fantastic isn’t it . So, Here it is
This Class is a Abstract Class so, you need not worry about even instantiating the class for Logging your message each and every time,
By simply placing this file into your Application and customize the settings you require and choosing On what timely basis you need to create your new Log files for Once and then GO !!
Log Class has Constants parameters as follows
// LOG DIRECTORY PATH by DEfault it takes the Folder from where it is executing Please use Tailored Slash const LOG_DIR= "logs/"; // PREFIX FOR AUTO CREATED LOG FILE CHANGE THIS IF YOU Wish to do const LOG_PRE="Log"; // Default Extenstion const LOG_EXT=".txt"; // DISABLE WRITING LOGS IN LOCAL ENVIRONMENT const LOG_DISABLE=false; // LOGG IPADDRESS const LOG_IP=true; // LOGG HTTP REFERRER const LOG_REF=true; // LOGG USER AGENT const LOG_UA=true;






using PHP. I bet you Love to implement this Framework for you small medium as well as big very big applications.