Hi, Using log4cxx v0.9.7, I'd like to have two different loggers logging to a same file, but with different Layouts.
I have created two different loggers, part of same hierarchy. Naively, I have assigned a different FileAppender to each, with a different Layout each. But I have given the same file name to both. This works. Both types of logs appear in the file. However i wonder if this is only a side-effect rather than a feature. Because what would happen if i set different options on the two FileAppenders? What if i use both RollingFileAppender and FileAppender on the same file? So is there another (safer?) recommended method for having two loggers writing to the same file, but with different layouts? Actually, i want to have some log entries timestamped, others not. regards, Lars R.