- All Implemented Interfaces:
Localized
Shows a table of recent log records, optionally filtered to logs related to a specific resource.
By default,
LogViewer
does not show any log entry.
For viewing logs, one of the two following actions must be done:
- Set
source
to a non-nullResource
value. - Set
systemLogs
totrue
.
Resource
value is specified, LogViewer
shows only some logs that occurred while
using that resource, in particular warnings emitted by the resource.- Since:
- 1.1
-
Field Summary
Modifier and TypeFieldDescriptionfinal ObjectProperty
<Resource> The data store or resource for which to show log records.final BooleanProperty
Whether to show system logs instead of the logs related to a specific resource. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetView()
Returns the control to show in the scene graph.Whether this viewer has no log record to show.Methods inherited from class Widget
getLocale
-
Field Details
-
source
The data store or resource for which to show log records. If this property value isnull
, then the system logs will be shown ifsystemLogs
istrue
, or no logs will be shown otherwise.- See Also:
-
systemLogs
-
-
Constructor Details
-
LogViewer
public LogViewer()Creates an initially empty viewer of log records. For viewing logs,source
must be set to a non-null value orsystemLogs
must be set totrue
.
-
-
Method Details
-
isEmptyProperty
Whether this viewer has no log record to show. This property is useful for disabling or enabling a tab.- Returns:
- the property telling whether this viewer no log record to show.
-
getView
Returns the control to show in the scene graph. The implementation class may change in any future version.
-