Euphoria Audio, LLC

Audio, Video and Data Consulting

Log4cxx XML Configuration Location Patch

No Comments »

I've been working in C and C++ quite a bit lately and using the Apache Log4cxx library for file and syslogging. It works wonderfully but I didn't like the fact that it required it's own configuration file (unless you set it up programmatically). My configs are in XML and I used Log4cxx's XML configuration as well. Since it's silly to distribute two configs for each application, I wrote the patch below that lets you put the Log4cxx configuraton root anywhere within your own XML file. I submitted it to the Apache dev list back in January but it doesn't look like anyone's comitting to the project so I'll post it here in the hopes that someone finds it useful.

Read the rest of this entry »