Base class for TSDuck report classes.
More...
|
| __init__ (self) |
| Constructor for subclasses.
|
|
| debug (self, message) |
| Log a messages at debug level.
|
|
| error (self, message) |
| Log a messages at error level.
|
|
| info (self, message) |
| Log a messages at info level.
|
|
| log (self, severity, message) |
| Log a message to the report.
|
|
| setMaxSeverity (self, severity) |
| Set the maximum severity of the report.
|
|
| verbose (self, message) |
| Log a messages at verbose level.
|
|
| warning (self, message) |
| Log a messages at warning level.
|
|
|
| header (severity) |
| Formatted line prefix header for a severity.
|
|
|
int | Debug = 1 |
| First debug level.
|
|
int | Error = -3 |
| Regular error.
|
|
int | Fatal = -5 |
| Fatal error, typically aborts the application.
|
|
int | Info = -1 |
| Information message.
|
|
int | Severe = -4 |
| Severe errror.
|
|
int | Verbose = 0 |
| Verbose information.
|
|
int | Warning = -2 |
| Warning message.
|
|
Base class for TSDuck report classes.
◆ __init__()
tsduck.Report.__init__ |
( |
|
self | ) |
|
◆ header()
tsduck.Report.header |
( |
|
severity | ) |
|
|
static |
Formatted line prefix header for a severity.
- Parameters
-
- Returns
- A string to prepend to messages. Empty for Info and Verbose levels.
◆ setMaxSeverity()
tsduck.Report.setMaxSeverity |
( |
|
self, |
|
|
|
severity |
|
) |
| |
Set the maximum severity of the report.
- Parameters
-
- Returns
- None.
◆ log()
tsduck.Report.log |
( |
|
self, |
|
|
|
severity, |
|
|
|
message |
|
) |
| |
Log a message to the report.
- Parameters
-
severity | Severity level of the message. |
message | Message to report. |
- Returns
- None.
◆ error()
tsduck.Report.error |
( |
|
self, |
|
|
|
message |
|
) |
| |
Log a messages at error level.
- Parameters
-
message | Message to report. |
- Returns
- None.
◆ warning()
tsduck.Report.warning |
( |
|
self, |
|
|
|
message |
|
) |
| |
Log a messages at warning level.
- Parameters
-
message | Message to report. |
- Returns
- None.
◆ info()
tsduck.Report.info |
( |
|
self, |
|
|
|
message |
|
) |
| |
Log a messages at info level.
- Parameters
-
message | Message to report. |
- Returns
- None.
◆ verbose()
tsduck.Report.verbose |
( |
|
self, |
|
|
|
message |
|
) |
| |
Log a messages at verbose level.
- Parameters
-
message | Message to report. |
- Returns
- None.
◆ debug()
tsduck.Report.debug |
( |
|
self, |
|
|
|
message |
|
) |
| |
Log a messages at debug level.
- Parameters
-
message | Message to report. |
- Returns
- None.
The documentation for this class was generated from the following file: