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

  FORUM HardWare.fr
  Programmation
  Java

  [Log4j] log4j.properties & hostname

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[Log4j] log4j.properties & hostname

n°1869897
shakenfr
Posté le 06-04-2009 à 09:23:20  profilanswer
 

bonjour,
 
je désire configurer mon log4j.properties pour prendre en compte le hostname pour stocker un même fichier dans un arborescence NFS dans des répertoires différents (1 pour chaque hostname). Est-ce possible ? comment ?
 
merci pour votre aide

mood
Publicité
Posté le 06-04-2009 à 09:23:20  profilanswer
 

n°1869927
nerisson
Pic-pic
Posté le 06-04-2009 à 10:21:04  profilanswer
 

Tu peut mettre une variable dans ton log4j.properties sous cette forme ${variable} et ensuite passer la valeur en lancant la JVM java -Dvariable=dummy


---------------
Light is right

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

  [Log4j] log4j.properties & hostname

 

Sujets relatifs
récuperer le hostnameconfig.properties pas accessible
[C] Comment obtenir hostname distant (Sniffer)Prototype : "element has no properties"
[log4j] optimisation: tester si niveau actif avant de logger?Problème avec Debug avec log4j
[JAVA] message.properties avec variable[JSTL/JSP/JAVA] comment afficher la clé d'un .properties ? [Resolu]
un log4j pour perl?[Tomcat] Comment configurer log4j ?
Plus de sujets relatifs à : [Log4j] log4j.properties & hostname


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