org.nuiton.i18n.plugin.parser
Class I18nLogger
java.lang.Object
org.apache.maven.plugin.logging.SystemStreamLog
org.nuiton.i18n.plugin.parser.I18nLogger
- All Implemented Interfaces:
- org.apache.maven.plugin.logging.Log
public class I18nLogger
- extends org.apache.maven.plugin.logging.SystemStreamLog
Le logger utilisé par les mojo de parsing.
- Since:
- 0.9
- Author:
- tchemit
|
Field Summary |
protected File |
file
le fichier en cours de traitement (pour les parseurs) |
protected String |
parser
le prefix du mojo courant a ajouter dans les logs. |
| Methods inherited from class org.apache.maven.plugin.logging.SystemStreamLog |
debug, debug, error, error, error, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isWarnEnabled, warn, warn, warn |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
file
protected File file
- le fichier en cours de traitement (pour les parseurs)
parser
protected String parser
- le prefix du mojo courant a ajouter dans les logs.
I18nLogger
public I18nLogger(AbstractI18nMojo parser)
info
public void info(CharSequence content)
- Specified by:
info in interface org.apache.maven.plugin.logging.Log- Overrides:
info in class org.apache.maven.plugin.logging.SystemStreamLog
debug
public void debug(CharSequence content)
- Specified by:
debug in interface org.apache.maven.plugin.logging.Log- Overrides:
debug in class org.apache.maven.plugin.logging.SystemStreamLog
infoEntry
public void infoEntry(String action,
CharSequence content)
infoFile
public void infoFile(String action,
String content)
infoAction
public void infoAction(String action,
String content)
setEntry
public void setEntry(SourceEntry entry)
getLogEntry
public String getLogEntry(String msg,
int nbFiles,
long time,
long all)
- Construit une chaine de log formatée.
- Parameters:
msg - le prefix du messagenbFiles - le nombre de fichiers actuellement traitéstime - le time de traitement de ce fichierall - le temps de traitement de tous les fichiers
- Returns:
- la chaine de log formatée
setFile
public void setFile(File file)
Copyright © 2007-2010 CodeLutin. All Rights Reserved.