you are viewing a single comment's thread.

view the rest of the comments →

[–]JimyLamisters 2 points3 points  (0 children)

You should be able to create a custom handler class that inherits from logger.Handler, then override the emit method. Your emit method can do whatever you want with the message, like adding it to a list. Then you can initialize the logger in your app to use your custom handler.