Modifier and Type | Method and Description |
---|---|
static void |
showLog(Component component)
Displays a dialog box showing last 1000 logged messages.
|
static void |
showLog(Component component,
String logName,
String[] filters,
int maxCount)
Displays a dialog box showing last logged messages belonging to
specified log.
|
public static void showLog(Component component)
Log
public static void showLog(Component component, String logName, String[] filters, int maxCount)
A log name may be anything string. However this facility supports qualified names. A qualified name has the following syntax:
qualified_name -> [ namespace ]? local_part namespace -> '{' [ string ]? '}' local_part -> string
Note that {}foo and foo are equivalent.
component
- used to specify which Frame or Dialog to
use as parent of dialog box.logName
- name of the log to be displayed. May be null
in which case it is the first log in lexical order which is displayed.filters
- a possibly null
or empty array containing
one or more log name filters.
A filter is a pair of strings.
First string is used to match the namespace of the log name.
Second string is used to match the local part of the log name.
For both strings, null
means: any.
maxCount
- show at most maxCount messagesLog.getLog(java.lang.String)