|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.myJava.util.log.FileLogProcessor
public class FileLogProcessor
Field Summary | |
---|---|
protected LogCleaner |
cleaner
Process de nettoyage eventuel de la log. |
protected boolean |
uniqueFile
Booleen indiquant si on utilise un fichier unique ou si on utilise un fichier par jour |
Constructor Summary | |
---|---|
FileLogProcessor(java.io.File file)
|
|
FileLogProcessor(java.lang.String file)
|
Method Summary | |
---|---|
boolean |
clearLog()
Efface le fichier de log. |
void |
displayApplicationMessage(java.lang.String messageKey,
java.lang.String title,
java.lang.String message)
|
void |
enableLogHistory(int history)
Declenche l'historisation de la log. |
java.lang.String |
getCurrentLogFile()
Retourne le fichier de log courante |
java.io.File |
getLogDirectory()
Retourne le repertoire de log |
java.lang.String |
getRootFileName()
Retourne le nom de base du fichier (sans la date, si on fonctionne en mode "historisation") |
void |
log(int level,
java.lang.String message,
java.lang.Throwable e,
java.lang.String source)
|
void |
unmount()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean uniqueFile
protected LogCleaner cleaner
Constructor Detail |
---|
public FileLogProcessor(java.lang.String file)
public FileLogProcessor(java.io.File file)
Method Detail |
---|
public void enableLogHistory(int history)
public java.lang.String getCurrentLogFile()
public void log(int level, java.lang.String message, java.lang.Throwable e, java.lang.String source)
log
in interface LogProcessor
public java.lang.String getRootFileName()
public java.io.File getLogDirectory()
public boolean clearLog()
clearLog
in interface LogProcessor
public void displayApplicationMessage(java.lang.String messageKey, java.lang.String title, java.lang.String message)
displayApplicationMessage
in interface LogProcessor
public void unmount()
unmount
in interface LogProcessor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |