Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1486 connectés 

  FORUM HardWare.fr
  Programmation
  Java

  [log4j] fichier log vide

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[log4j] fichier log vide

n°1079265
fifou38
Posté le 11-05-2005 à 12:48:06  profilanswer
 

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

mood
Publicité
Posté le 11-05-2005 à 12:48:06  profilanswer
 


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  Java

  [log4j] fichier log vide

 

Sujets relatifs
[C++] Bug lors de la création d'un fichier -> devient unicoderécupération de noms de fichier
Créer un fichier PDF avec PHPMySql et gros fichier de requete
Creation d'un fichier .reg[C] Effacement d'une structure dans un fichier binaire
gestion de fichier et mode append[JAVA] petite explication sur le chargement d'un fichier audio
MySQL ou fichier texte ???Manipulation de fichier XML complexe et DataGrid
Plus de sujets relatifs à : [log4j] fichier log vide


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR