Hi, I have the following problem: I'm working at a program that consists of multiple eclipse projects. Some of the projects use log4j logger, others use the simple logger. I want to change that so that all loggers are log4j. But if I just change the loggers to log4j, I get no output. I've read that I have to configure the logger with a .properties or .xml file. And here is where I have to ask the first question: The already existing log4j loggers have no configuration at all. Why do they work but not a new one that I add.
My second question: Is it correct that i have to have a configuration file (even if I just want the default configuration) and if so: I tried to embed my configuration via the parameter -Dlog4j.configuration in the run configuration; but it didn't work. Where do I have to put the file so that it can be found? I'm new to log4j and if this is a silly easy question that is answered in a FAQ or sth, I'm really sorry because I've searched for quite a while and didn't find a sastisfying answer. If the description is too unclear, let me know. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
