package net.winstone.log;

/**
 * Minimal Logger facade interface.
 * 
 * @author Jerome Guibert
 */
public interface Logger {

    /**
     * Log Information message.
     * @param msg
     */
    public void info(final String msg);

    /**
     * Log Information from specified key message which will be formatted with parameters.
     * @param key
     * @param parameters
     */
    public void info(final String key, final String... parameters);

    public void info(final String msg, final Throwable t);

    public void warn(final String msg);

    public void warn(String string, final String... parameters);

    public void warn(final String msg, final Throwable t);

    public void error(final String msg);

    public void error(final String msg, final Throwable t);

    /**
     * Log Error from specified key message which will be formatted with parameters.
     * @param t
     * @param key
     * @param parameters
     */
    public void error(final Throwable t, final String key, final String... parameters);

    /**
     * Log Debug message.
     * @param msg
     */
    public void debug(final String msg);

    /**
     * Log Debug from specified key message which will be formatted with parameters.
     * @param key
     * @param parameters
     */
    public void debug(final String key, final String... parameters);

    public void debug(final String msg, final Throwable t);

    /**
     * Log Trace message.
     * @param key
     * @param parameters
     */
    public void trace(final String msg);

    /**
     * Log Trace from specified key message which will be formatted with parameters.
     * @param key
     * @param parameters
     */
    public void trace(final String key, final String... parameters);

    public boolean isInfoEnabled();

    public boolean isWarnEnabled();

    public boolean isErrorEnabled();

    public boolean isDebugEnabled();

    public boolean isTraceEnabled();
}

@@ -170,32 +170,44 @@
     * @param msg
+ the message
 %0A     */%0A    pub
@@ -352,38 +352,78 @@
 * @param key
-%0A     * @param
+ the specified key%0A     * @param parameters additional
  parameters%0A
@@ -507,104 +507,487 @@
     
-public void info(final String msg, final Throwable t);%0A%0A    public void warn(final String msg);%0A
+/**%0A     * Log Information message.%0A     * @param msg the message%0A     * @param t the exception (throwable) to log%0A     */%0A    public void info(final String msg, final Throwable t);%0A%0A    /**%0A     *  Log Warn message.%0A     * @param msg the message%0A     */%0A    public void warn(final String msg);%0A%0A    /**%0A     *  Log Warn from specified key message which will be formatted with parameters.%0A     * @param key the specified key%0A     * @param parameters additional parameters%0A     */
 %0A   
@@ -1008,21 +1008,24 @@
 arn(
-String s
+final S
 tring
+ key
 , fi
@@ -1060,105 +1060,422 @@
     
-public void warn(final String msg, final Throwable t);%0A%0A    public void error(final String msg);%0A
+/**%0A     *  Log Warn message.%0A     * @param msg the message%0A     * @param t the exception (throwable) to log%0A     */%0A    public void warn(final String msg, final Throwable t);%0A%0A    /**%0A     *  Log Error message.%0A     * @param msg the message%0A     */%0A    public void error(final String msg);%0A%0A    /**%0A     *  Log Error message.%0A     * @param msg the message%0A     * @param  t the exception (throwable) to log%0A     */
 %0A   
@@ -1644,48 +1644,124 @@
 am t
-%0A     * @param key%0A     * @param paramet
+ the exception (throwable) to log%0A     * @param key the specified key%0A     * @param parameters additional parameters
 ers%0A
@@ -1908,16 +1908,28 @@
 aram msg
+ the message
 %0A     */
@@ -2077,38 +2077,78 @@
 * @param key
-%0A     * @param
+ the specified key%0A     * @param parameters additional
  parameters%0A
@@ -2217,32 +2217,153 @@
 . parameters);%0A%0A
+    /**%0A     * Log Debug message.%0A     * @param msg the message%0A     * @param t the exception (throwable) to log%0A     */%0A
     public void 
@@ -2459,36 +2459,25 @@
 ram 
-key%0A     * @param parameters
+msg  the message 
 %0A   
@@ -2629,38 +2629,78 @@
 * @param key
-%0A     * @param
+ the specified key%0A     * @param parameters additional
  parameters%0A

add doc