|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gargoylesoftware.htmlunit.WebConsole
public class WebConsole
This class can be used to print messages to the logger. The first parameter can be a message-object containing format specifiers such as ("%o", "%s", "%d", "%i", "%f"). The logging methods are null-safe, so if the number of format specifiers and the numbers of parameters don't match, no exception is thrown. The default logger uses Apache Commons Logging.
| Nested Class Summary | |
|---|---|
static interface |
WebConsole.Formatter
This interface can be implemented by clients that want to customize the way parameters and objects are logged. |
static interface |
WebConsole.Logger
A simple logging interface abstracting logging APIs. |
| Constructor Summary | |
|---|---|
WebConsole()
|
|
| Method Summary | |
|---|---|
void |
debug(Object... args)
Prints the passed objects using logger debug level. |
void |
error(Object... args)
Prints the passed objects using logger error level. |
WebConsole.Formatter |
getFormatter()
Returns the current Formatter. |
WebConsole.Logger |
getLogger()
Returns the current Logger. |
void |
info(Object... args)
Prints the passed objects using logger info level. |
void |
setFormatter(WebConsole.Formatter formatter)
Sets the Formatter. |
void |
setLogger(WebConsole.Logger logger)
Sets the Logger_. |
void |
trace(Object... args)
Prints the passed objects using logger trace level. |
void |
warn(Object... args)
Prints the passed objects using logger warn level. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WebConsole()
| Method Detail |
|---|
public void setFormatter(WebConsole.Formatter formatter)
formatter - the formatterpublic WebConsole.Formatter getFormatter()
public void setLogger(WebConsole.Logger logger)
logger - the loggerpublic WebConsole.Logger getLogger()
public void trace(Object... args)
args - the logging parameterspublic void debug(Object... args)
args - the logging parameterspublic void info(Object... args)
args - the logging parameterspublic void warn(Object... args)
args - the logging parameterspublic void error(Object... args)
args - the logging parameters
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||