How to capture worker panics?

Is there a way to set a common behavior for all panics happening in workflows and activities?
This is not the WorkflowPanicPolicy.
This is more around the logging.
Currently there is a hard to read stack trace being printed out resulting from panics with console coloring characters which make it hard to read
Can I at least set a logger of my choice for all these panics?
thanks

Can I at least set a logger of my choice for all these panics?

you can configure custom logger if you want, see sample here if it helps