HomeAbout Mark van HedelContact Mark van Hedel



Log4j in ColdFusion

As I did say last week I was working on a small project to see how log4j could fit in ColdFusion. What I did was create one CFC to talk to log4j and do all the logging. This CFC is finished now and I have it implemented in some small ColdFusion application to see how it works.

The idea about using log4j is that I do want to be more flexible with logging when I create applications. With using it I can define myself what kind of logging I want in application, so for instance on a development machine I do want debug, info, warning, error and fatal to log, when I'm in a production environment I only want to see error and fatal messages in my logfile. And the very good thing is that log4j is already part of the ColdFusion install, so everyone using ColdFusion can just start using it.

[More]

ColdFusion using log4J

Yesterday I've already decided to start looking into another thing that has been on my mind already for a few years. This is why not use log4j in ColdFusion, I've again checked out some articles on the web and couldn't find as much info as I wanted so I decided to check it out further myself. A long time ago there has been a resource bundle for CF with log4cf in there, this has died away as far as I can see, but I do want to press further and see what I can do with log4j in ColdFusion and see how that can help me in development or make debugging even easier.

For now I'm creating a testcase to see what I can do with it and how it can help me in my development process but I'll keep you all posted here.

BlogCFC was created by Raymond Camden. This blog is running version 5.9.002. Contact Blog Owner