-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OStreamMessageHandler : Prefix every line with message level
This allows log parsers to correctly identify the type of each line for syntax highlighting and the like. The immediate motivation is for a new LocalJobs panel in Gaffer, that captures the output from LocalDispatcher subprocesses and turns it back into messages for display into a GafferUI.MessagesWidget.
- Loading branch information
1 parent
e7b5481
commit 06a7086
Showing
3 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import IECore | ||
|
||
IECore.msg( IECore.Msg.Level.Error, "Context", "Simple message" ) | ||
IECore.msg( IECore.Msg.Level.Error, "Context", "Two line\nmessage" ) | ||
IECore.msg( IECore.Msg.Level.Error, "Context", "Terminating newline\n" ) | ||
IECore.msg( IECore.Msg.Level.Error, "Context", "Blank\n\nlines" ) |