| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.aragost.javahg.log.JULLogger
public class JULLogger
This simulates the Logger class from slf4j.
Only the methods that is actually used by JavaHg is implemented, but others will be added as needed.
 Implementation note: In general for log level abc there is an
 void abc(String msg) and
 void abc(String msg, Object[] args). The first simply
 writes the message to the backend with no formatting, the second
 will do a formatting similar to slf4j. The first is strictly not
 needed, but the consequence would be that for even simple log
 messages a temp array would be created for the varargs.
| Constructor Summary | |
|---|---|
JULLogger(String name)
 | 
|
| Method Summary | |
|---|---|
 void | 
debug(String msg)
Logs a debugging message - detailed debugging information that can be used for identifying problems without a debugger, e.g.  | 
 void | 
debug(String msg,
      Object... args)
Logs a debugging message - detailed debugging information that can be used for identifying problems without a debugger, e.g.  | 
 void | 
debug(String msg,
      Throwable thrown)
 | 
 void | 
error(String msg)
 | 
 void | 
error(String msg,
      Object... args)
 | 
 void | 
error(String msg,
      Throwable thrown)
 | 
 void | 
info(String msg)
Logs an informational message - information about application progress, e.g.  | 
 void | 
info(String msg,
     Object... args)
 | 
 void | 
info(String msg,
     Throwable thrown)
 | 
 boolean | 
isDebugEnabled()
 | 
 boolean | 
isErrorEnabled()
 | 
 boolean | 
isInfoEnabled()
 | 
 boolean | 
isWarnEnabled()
 | 
 void | 
warn(String msg)
 | 
 void | 
warn(String msg,
     Object... args)
 | 
 void | 
warn(String msg,
     Throwable thrown)
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public JULLogger(String name)
| Method Detail | 
|---|
public void debug(String msg)
Logger
debug in interface Loggermsg - The message to log.
public void debug(String msg,
                  Object... args)
Logger
debug in interface Loggermsg - The message to log.
public void debug(String msg,
                  Throwable thrown)
debug in interface Loggerpublic void info(String msg)
Logger
info in interface Logger
public void info(String msg,
                 Object... args)
info in interface Logger
public void info(String msg,
                 Throwable thrown)
info in interface Loggerpublic void warn(String msg)
warn in interface Logger
public void warn(String msg,
                 Object... args)
warn in interface Logger
public void warn(String msg,
                 Throwable thrown)
warn in interface Loggerpublic void error(String msg)
error in interface Logger
public void error(String msg,
                  Object... args)
error in interface Logger
public void error(String msg,
                  Throwable thrown)
error in interface Loggerpublic boolean isDebugEnabled()
isDebugEnabled in interface Loggerpublic boolean isInfoEnabled()
isInfoEnabled in interface Loggerpublic boolean isWarnEnabled()
isWarnEnabled in interface Loggerpublic boolean isErrorEnabled()
isErrorEnabled in interface Logger
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||