|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

java.lang.Objectatg.service.log.AtgLogManager
public class AtgLogManager
Titre : Manageur de logs
Description : Gestion des logs
Le chemin de logging.properties indiqué dans le fichier de constantes
est cherché d'abord dans le file system sinon dans le classpath du jar
Copyright : FERRARI Olivier
| Field Summary | |
|---|---|
protected static java.util.logging.Logger |
defaultLogger_
Log par défaut |
protected static boolean |
isInit
Contient l'initialisation des logs boolean Initialisation ou pas |
protected static java.lang.String[] |
lesHandlers
Nom des Handlers à gèrer |
protected static java.util.Properties |
lesProperties
Proprietés des logs |
protected static java.util.Hashtable<java.lang.String,java.lang.String> |
logInit
Table des initialisation des logs |
protected static java.lang.String |
pathFileProperties
Chemin du fichier logging.properties |
| Constructor Summary | |
|---|---|
AtgLogManager()
|
|
| Method Summary | |
|---|---|
static java.util.logging.Logger |
getDefaultLog()
Retourne le log par défaut |
static java.util.logging.Logger |
getLog(java.lang.String logName)
Retourne le log associée au nom |
static void |
init()
Initialise le manageur de logs Cherche d'abord logging.properties sur le filesystem sinon dans le classpath du jar |
protected static void |
initLogger(java.util.logging.Logger logger,
java.lang.String logName)
Initialise du log |
static void |
setPathFileProperties(java.lang.String newPathFileProperties)
Fixe le fichier de paramètrage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static java.util.logging.Logger defaultLogger_
protected static java.util.Hashtable<java.lang.String,java.lang.String> logInit
protected static java.lang.String pathFileProperties
protected static java.util.Properties lesProperties
protected static java.lang.String[] lesHandlers
protected static boolean isInit
| Constructor Detail |
|---|
public AtgLogManager()
| Method Detail |
|---|
public static void setPathFileProperties(java.lang.String newPathFileProperties)
newPathFileProperties - Chemin du fichier logging.properties
public static void init()
throws java.io.IOException
java.io.IOException - Impossible de lire le fichierpublic static java.util.logging.Logger getLog(java.lang.String logName)
logName - Categorie du log
public static java.util.logging.Logger getDefaultLog()
protected static void initLogger(java.util.logging.Logger logger,
java.lang.String logName)
logger - Log à initialiserlogName - Catégorie du log associé
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||