org.eclipse.jgit.junit.http
Class RecordingLogger
java.lang.Object
org.eclipse.jgit.junit.http.RecordingLogger
- All Implemented Interfaces:
- org.eclipse.jetty.util.log.Logger
public class RecordingLogger
- extends Object
- implements org.eclipse.jetty.util.log.Logger
Logs warnings into an array for later inspection.
|
Method Summary |
static void |
clear()
Clear the warnings, automatically done by AppServer.setUp() |
void |
debug(String msg)
|
void |
debug(String msg,
Object... args)
|
void |
debug(String msg,
Object arg0,
Object arg1)
|
void |
debug(String msg,
Throwable th)
|
void |
debug(Throwable thrown)
|
org.eclipse.jetty.util.log.Logger |
getLogger(String name)
|
String |
getName()
|
static List<RecordingLogger.Warning> |
getWarnings()
|
void |
ignore(Throwable arg0)
|
void |
info(String msg)
|
void |
info(String msg,
Object... args)
|
void |
info(String msg,
Object arg0,
Object arg1)
|
void |
info(String msg,
Throwable thrown)
|
void |
info(Throwable thrown)
|
boolean |
isDebugEnabled()
|
void |
setDebugEnabled(boolean enabled)
|
void |
warn(String msg)
|
void |
warn(String msg,
Object... args)
|
void |
warn(String msg,
Object arg0,
Object arg1)
|
void |
warn(String msg,
Throwable th)
|
void |
warn(Throwable thrown)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RecordingLogger
public RecordingLogger()
RecordingLogger
public RecordingLogger(String name)
clear
public static void clear()
- Clear the warnings, automatically done by
AppServer.setUp()
getWarnings
public static List<RecordingLogger.Warning> getWarnings()
- Returns:
- the warnings (if any) from the last execution
getLogger
public org.eclipse.jetty.util.log.Logger getLogger(String name)
- Specified by:
getLogger in interface org.eclipse.jetty.util.log.Logger
getName
public String getName()
- Specified by:
getName in interface org.eclipse.jetty.util.log.Logger
warn
public void warn(String msg,
Object arg0,
Object arg1)
warn
public void warn(String msg,
Throwable th)
- Specified by:
warn in interface org.eclipse.jetty.util.log.Logger
warn
public void warn(String msg)
debug
public void debug(String msg,
Object arg0,
Object arg1)
debug
public void debug(String msg,
Throwable th)
- Specified by:
debug in interface org.eclipse.jetty.util.log.Logger
debug
public void debug(String msg)
info
public void info(String msg,
Object arg0,
Object arg1)
info
public void info(String msg)
isDebugEnabled
public boolean isDebugEnabled()
- Specified by:
isDebugEnabled in interface org.eclipse.jetty.util.log.Logger
setDebugEnabled
public void setDebugEnabled(boolean enabled)
- Specified by:
setDebugEnabled in interface org.eclipse.jetty.util.log.Logger
warn
public void warn(String msg,
Object... args)
- Specified by:
warn in interface org.eclipse.jetty.util.log.Logger
warn
public void warn(Throwable thrown)
- Specified by:
warn in interface org.eclipse.jetty.util.log.Logger
info
public void info(String msg,
Object... args)
- Specified by:
info in interface org.eclipse.jetty.util.log.Logger
info
public void info(Throwable thrown)
- Specified by:
info in interface org.eclipse.jetty.util.log.Logger
info
public void info(String msg,
Throwable thrown)
- Specified by:
info in interface org.eclipse.jetty.util.log.Logger
debug
public void debug(String msg,
Object... args)
- Specified by:
debug in interface org.eclipse.jetty.util.log.Logger
debug
public void debug(Throwable thrown)
- Specified by:
debug in interface org.eclipse.jetty.util.log.Logger
ignore
public void ignore(Throwable arg0)
Copyright © 2011. All Rights Reserved.