[log4j] fichier log vide

fichier log vide [log4j] - Java - Programmation

Marsh Posté le 11-05-2005 à 12:48:06    

Salut  
j'ai un pb log4j a vous soumettre J'ai configuré mon fichier .properties pour avoir les traces des logs dans mon fichier xx.log, Ca marchait tres bien jusqu'à ce ke je decide de changer de fichier log : j'ai juste remplace le nom du fichier dans le fichier .properties. ca ne marche pas, il est tout le temps vide. Pourtant le chamin est correct et tout le monde a tous les droits dessus.
 
Voici le fichier properties. J'ai mis le chemin absolu mais le chamn relatif c pareil.
 
Merci de votre aide.
 
 
#
# This defines the logging level for the rootLogger. It is not required # if you are going to keep the level at debug as the rootLogger by default  
# is at the debug level. The value after the comma is the appender for the # root and we have given it the name R # log4j.rootLogger=debug, R
 
#
# For this simple example, we are just going to log to the console # #log4j.appender.R=org.apache.log4j.ConsoleAppender
 
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=D:\Development\jdev1012\jdev\mywork\ewip3\ViewController\public_html\WEB-INF\errors.log
 
log4j.appender.R.MaxFileSize=100KB
# Keep one backup file
log4j.appender.R.MaxBackupIndex=1
 
 
#
# When logging using the ConsoleAppender, the following value tells how and # what to log. The SimpleLayout simply logs the level of the message and # the message itself. # #Modification : utilisation du patternLayout pour afficher le detail des logs #http://logging.apache.org/log4j/docs/api/org/apache/log4j/PatternLayout.html
#date - priorite - thread - classe - message
#
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern==%d %p %t %c - %m%n

Reply

Marsh Posté le 11-05-2005 à 12:48:06   

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed