views:

29

answers:

0

Hello,

I use the library log4cxx in a c++ cross-platform project. We decide to use configuration file in XML.

I have three questions:

  • i use simple appenders of type "org.apache.log4j.FileAppender" for some loggers with the same layout. But i want that the loggers write in different files. I created some appenders with different name and only different param name="file". To simplify it, does it is possible to write only one appender who take on argument the logger destination file?

  • The project is cross-platform, we want to specify different path for platform. Should i must create one file by plateform or it's possible to specify it in the xml configuration file?

  • What is the difference in the xml between logger item and category item?

Thanks you.