Class LoggingPatternFormatter
java.lang.Object
java.util.logging.Formatter
org.nuiton.util.LoggingPatternFormatter
Classe org.nuiton.logging.PatternFormatter.
- n: new line
- %: %
- {: {
- d: date
- o: free memory
- O: total memory
- t: thread id
- p: priority level
- c: class name
- m: message
- a: argument
- e: exception
Sized element support justify pattern. {[+|-]<size>[:<maxPo>]}. '+' is left justify, '-' rigth justify, size the prefered size for the element if it is not bigger. If maxPos option is present blanc is not add if it go up to maxPos.
SubString
- M: method name
L'element SubString a les memes possibilites que le pattern justify, et permet en plus de suprimer une sous chaine, cela permet de supprimer le debut du nom d'une classe. Syntaxe : {*<substring>|[+|-]<size>[:<maxPos>]} {<substring>*|[+|-]<size>[:<maxPos>]} L'etoile represente le texte qui restera.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class//////////////////////////////////////////////////////////////////////////// ///////////////////////// Les Classes Argument ///////////////////////////// ////////////////////////////////////////////////////////////////////////////protected static classprotected static classprotected static classprotected static classprotected static classprotected static classprotected static classprotected static classprotected static classprotected static classprotected static classprotected static classprotected static class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcompilePattern(String pattern) Genere a partir de la chaine la liste des objet Argument.protected String[]Recherche dans la chaine le prochaine pattern.Methode qui formate le recordprotected voidSi vous souhaitez ajouter des type d'argument Surcharger cette methode et a la fin fait un super.initArguments()protected LoggingPatternFormatter.ArgumentConverti un pattern en un objet ArgumentMethods inherited from class Formatter
formatMessage, getHead, getTail
-
Field Details
-
arguments
-
compile
-
pattern
-
-
Constructor Details
-
LoggingPatternFormatter
public LoggingPatternFormatter()
-
-
Method Details
-
format
-
initArguments
protected void initArguments()Si vous souhaitez ajouter des type d'argument Surcharger cette methode et a la fin fait un super.initArguments() -
compilePattern
Genere a partir de la chaine la liste des objet Argument.- Parameters:
pattern- FIXME
-
findNextPattern
-
patternToArgument
Converti un pattern en un objet Argument- Parameters:
s- FIXME- Returns:
- FIXME
-