Message 1 of 6
Remove the # character when using python logging
Not applicable
03-28-2017
12:18 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi!
We are trying to use the regular python logging instead of using prints.
I am using the maya.utils.MayaGuiLogHandler() as handler.
But any formatter I use, there is no way to get rid of the # in the script editor.
import logging
handler = maya.utils.MayaGuiLogHandler()
firstHandler = logger.handlers[0]
logger.addHandler(handler)
logger.removeHandler(firstHandler)
logger.propagate=False
logging.info("test")Result is
# test #
How can I get rid of the #s ??
Thanks