Entries Tagged as Java

CFLog4j - Interesting enhancements by Eric

I wrote cflog4j last year while working with an application at work that needed significant amount of logging. CFLog4j is essentially a ColdFusion based wrapper around the powerful Java library for logging i.e. log4j. I also wrote few Fusebox lexicons to log activity from the circuit files as that was the framework of choice at my last job. I haven't had a chance to improve and extend the original code for a while now. However Eric Knipp has been doing some excellent work with this project. Here are few blog posts related to this topic.

  1. ColdFusion and Log4j
  2. ColdFusion & Log4j Part 2 - Writing Logs to a Database
  3. ColdFusion & Log4j Part 3 - Custom Attributes and Mapped Diagnostic Context

Thanks Eric!

String Concatenation in Java (ColdFusion also)

JH's blog has a nice overview of string concatenation in Java by comparing String, StringBuffer and StringBuilder class. StringBuilder vs StringBuffer vs String.concat - done right This applies to ColdFusion developers as well since ColdFusion String are Java String under the hood. This was my motiviation when I wrote the UDF QueryToCSV2 that is available on cflib.og