Muscat.Helpers.Logger module¶
- class CatchLog(*args, **kwargs)[source]¶
Bases:
Handler
Class to capture the logger output To be used with a with :
- with Logger.CatchLog() as e:
Logger.Warning(“hello”) assert e.messages[‘warning’][0] == “hello”
Bases: Handler
Class to capture the logger output To be used with a with :
- with Logger.CatchLog() as e:
Logger.Warning(“hello”) assert e.messages[‘warning’][0] == “hello”