org.nuiton.i18n.plugin.parser
Class I18nLogger

java.lang.Object
  extended by org.apache.maven.plugin.logging.SystemStreamLog
      extended by 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.
 
Constructor Summary
I18nLogger(AbstractI18nMojo parser)
           
 
Method Summary
 void debug(CharSequence content)
           
 String getLogEntry(String msg, int nbFiles, long time, long all)
          Construit une chaine de log formatée.
 void info(CharSequence content)
           
 void infoAction(String action, String content)
           
 void infoEntry(String action, CharSequence content)
           
 void infoFile(String action, String content)
           
 void setEntry(SourceEntry entry)
           
 void setFile(File file)
           
 
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
 

Field Detail

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.

Constructor Detail

I18nLogger

public I18nLogger(AbstractI18nMojo parser)
Method Detail

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 message
nbFiles - le nombre de fichiers actuellement traités
time - le time de traitement de ce fichier
all - 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.