Line¶
Line
represents a single line in a line-based terminal application. If a
line is visible, depends on the Severity
-level of a
Line
object.
- class pyTooling.TerminalUI.Line(message, severity=Severity.Normal, indent=0, appendLinebreak=True)[source]¶
Bases:
object
Represents a single line message with a severity and indentation level.
- _LOG_MESSAGE_FORMAT__ = {Severity.Debug: 'DEBUG: {message}', Severity.Verbose: 'VERBOSE: {message}', Severity.Normal: '{message}', Severity.DryRun: 'DRYRUN: {message}', Severity.Info: 'INFO: {message}', Severity.Warning: 'WARNING: {message}', Severity.Quiet: '{message}', Severity.Error: 'ERROR: {message}', Severity.Fatal: 'FATAL: {message}'}¶
Terminal messages formatting rules