Bonjour,

J'ai ecris la methode suivante pour une application utilisant log4j:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
public static void rewriteConfigFile() {
    	try {
			PropertyPrinter pf2 = new PropertyPrinter(new PrintWriter(new File(log4jConfigFileFullPath)));
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
}
J'obtient de nombreuse fois l'erreur suivante quand je l'execute:
log4j:WARN Failed to set property [contentType] to value "text/plain".
Auriez-vous une idee?

Matthias