An abstract Report class which can be derived by applications to get asynchronous log messages.
More...
|
void | debug (String message) |
| Log a messages at debug level. More...
|
|
native void | delete () |
| Delete the encapsulated C++ object.
|
|
void | error (String message) |
| Log a messages at error level. More...
|
|
void | info (String message) |
| Log a messages at info level. More...
|
|
native void | log (int severity, String message) |
| Log a message to the report. More...
|
|
abstract void | logMessageHandler (int severity, String message) |
| This method is invoked each time a message is logged. More...
|
|
native void | setMaxSeverity (int severity) |
| Set the maximum severity of the report. More...
|
|
native void | terminate () |
| Synchronously terminates the asynchronous log thread.
|
|
void | verbose (String message) |
| Log a messages at verbose level. More...
|
|
void | warning (String message) |
| Log a messages at warning level. More...
|
|
|
static native String | header (int severity) |
| Formatted line prefix header for a severity. More...
|
|
|
static final int | Debug = 1 |
| First debug level.
|
|
static final int | Error = -3 |
| Regular error.
|
|
static final int | Fatal = -5 |
| Fatal error, typically aborts the application.
|
|
static final int | Info = -1 |
| Information message.
|
|
static final int | Severe = -4 |
| Severe error.
|
|
static final int | Verbose = 0 |
| Verbose information.
|
|
static final int | Warning = -2 |
| Warning message.
|
|
An abstract Report class which can be derived by applications to get asynchronous log messages.
This class is functionally similar to AsyncReport except that the message handling can be implemented in Java. This class is suitable for use with TSProcessor.
◆ AbstractAsyncReport()
io.tsduck.AbstractAsyncReport.AbstractAsyncReport |
( |
int |
severity, |
|
|
boolean |
syncLog, |
|
|
int |
logMsgCount |
|
) |
| |
|
inlineprotected |
Constructor (for subclasses).
- Parameters
-
severity | Initial severity. |
syncLog | Synchronous log. |
logMsgCount | Maximum buffered log messages. |
◆ logMessageHandler()
abstract void io.tsduck.AbstractAsyncReport.logMessageHandler |
( |
int |
severity, |
|
|
String |
message |
|
) |
| |
|
abstract |
This method is invoked each time a message is logged.
If a subclass wants to intercept log messages, it should override this method. Take care that this method is invoked in the context of a native thread.
- Parameters
-
severity | Severity of the message. |
message | Message line. |
◆ setMaxSeverity()
native void io.tsduck.Report.setMaxSeverity |
( |
int |
severity | ) |
|
|
inherited |
Set the maximum severity of the report.
- Parameters
-
◆ log()
native void io.tsduck.Report.log |
( |
int |
severity, |
|
|
String |
message |
|
) |
| |
|
inherited |
Log a message to the report.
- Parameters
-
severity | Severity level of the message. |
message | Message to report. |
◆ error()
void io.tsduck.Report.error |
( |
String |
message | ) |
|
|
inlineinherited |
Log a messages at error level.
- Parameters
-
message | Message to report. |
◆ warning()
void io.tsduck.Report.warning |
( |
String |
message | ) |
|
|
inlineinherited |
Log a messages at warning level.
- Parameters
-
message | Message to report. |
◆ info()
void io.tsduck.Report.info |
( |
String |
message | ) |
|
|
inlineinherited |
Log a messages at info level.
- Parameters
-
message | Message to report. |
◆ verbose()
void io.tsduck.Report.verbose |
( |
String |
message | ) |
|
|
inlineinherited |
Log a messages at verbose level.
- Parameters
-
message | Message to report. |
◆ debug()
void io.tsduck.Report.debug |
( |
String |
message | ) |
|
|
inlineinherited |
Log a messages at debug level.
- Parameters
-
message | Message to report. |
◆ header()
static native String io.tsduck.Report.header |
( |
int |
severity | ) |
|
|
staticinherited |
Formatted line prefix header for a severity.
- Parameters
-
- Returns
- A string to prepend to messages. Empty for Info and Verbose levels.
◆ nativeObject
long io.tsduck.NativeObject.nativeObject = 0 |
|
protectedinherited |
The address of the underlying C++ object.
It is normally accessed by native methods only.
The documentation for this class was generated from the following file: