fluent-logger-python icon indicating copy to clipboard operation
fluent-logger-python copied to clipboard

Add formatted exception

Open EvaSDK opened this issue 11 years ago • 3 comments

This is a prototype for adding structured exception to a FluentRecordFormatter formatted message. I am not sure yet if this is any useful and it is not exactly the cleanest way to add custom attributes to a record but this might be useful for someone.

EvaSDK avatar Aug 05 '14 15:08 EvaSDK

This is based on MR #18 so the only interesting commit is the last one.

EvaSDK avatar Aug 05 '14 15:08 EvaSDK

Hi @EvaSDK! We can use logging.exc_text for formatted exception. As I mentioned in #38.

ngiallelis avatar Jun 22 '15 15:06 ngiallelis

@ngiallelis, well the idea of using fluent is to keep structured log where possible, hence the use of traceback.extract_tb instead of pure text.

EvaSDK avatar Jun 23 '15 07:06 EvaSDK