I have created a small web application in java. And now I want to add Logging features to it. But i don’t want to use any available Logging framework like Log4j or something else, instead I want to create my own logging framework which can be expendable in future as well. So need some initial push ups for the same, And this is the right place for that.
Thanks.
My advice would be not to do it. Use tried and tested logging frameworks such as log4j. Why do you want to reinvent the wheel?
A lot of time has been spent on existing frameworks – making them work fast, under various different environments etc. Do you really want to waste time replicating that effort when you could spend the same time on features that your users will really care about?
Don’t forget that many frameworks (such as log4j, or even the built-in java.util.logging) are extensible with your own formatters, handlers etc. You should really work out what you want to do which isn’t covered by the existing frameworks and see whether you can build just that bit rather than creating yet another logging framework.
If and when you’ve worked out that you do need to write some extra code, you can then ask questions about those specific needs, rather than your current rather general question.