But I found some people just might need some more push. So here is what I did:
- Download log4php
- Copy log4php + tests folder into htdocs
- Add log4php.properties in same folder, with quote in the link
- Now just test if logger works with tests/test_body.php (just add 'define('LOG4PHP_DIR', '../log4php');' in test_body.php)
Hopefully this should work!
Once you are done with that, say u want to display data to some Admin who views from browser - You can use some XSLT XML magic here.
- Try to save the data in the format you can separate the information bits later in future. eg - 2009-01-13 05:14:39,512 : INFO : UserData: getUserInfo(1):
phil 8000 ../images/prelert.gif - In the above case, I will separate the tags by colon points (:) and build an XML with
records - Build an XSLT to read the value of XML
- User can view the log as an HTML page now.
