[OWASP_PHPSEC] Logs Initial Attempt

rahul chaudhary rahul300chaudhary400 at gmail.com
Fri Jul 19 09:46:44 UTC 2013

Hello All,

Today I pushed my initial attempt to the logs...

It works like this:
There is a logger class...so you make an instance of it and pass it a
configuration file. That configuration file will contain what type of
storage media is required - file/DB/XML, then other additional details such
as for file, what mode to open to file in, for DB, what table to write in

The main class, logger will extract all this configuration....then it will
call the appropriate class...e.g. a file is choosen, then it will call the
file class...(inside folder named "media")...then that file class will
prepare to write to the required file...

The test case explains it better.

However, I want some feedback from all of you if this method is correct.

Secondly, I am having this problem...I want to build a template, that the
developers can define themselves. That template will define the format, the
data needs to be entered....something like this:

So, now everytime, a log needs to be entered, they must be arranged in this
order. So I need to define some kind of placeholder in template. So
anyways, I cannot get me head around how to do this...can anyone help ?

Rahul Chaudhary
Ph - 412-519-9634
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.owasp.org/pipermail/owasp_php_security_project/attachments/20130719/1a6a8f9f/attachment.html>

More information about the OWASP_PHP_Security_Project mailing list