Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
If using a specific logger in python, it is useful to set a custom parser for data printed by python. I've set this as a
parseroption, which is optional, outside of the normalmode. This means you can leavemodeas json, for example, and send json to the python script. Then, when receiving lines from the script, it will first check forparserand then fall back tomodes.For example, if you have a script that outputs something like this:
2015-05-13 13:32:52,812 INFO dosomething:12 root.main() - xyz abcYou can set a parser:
This will return
If a line is invalid it will throw, and python-shell will return a proper error.