You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have some troubles changing usp logging behavior. By default it outputs to stdout. It should be easy enough to use my own logger and handlers with propagation to the root logger.
The only way I figured out so far is to hack logging within context with following code:
so one could do something similar to how custom user agents are supported, i.e. have an "abstract logger" class to define an interface for logging, a default implementation, and an ability to pass an optional logger object to sitemap_tree_for_homepage(). Web client implementation of this approach is here:
Hi,
I have some troubles changing usp logging behavior. By default it outputs to stdout. It should be easy enough to use my own logger and handlers with propagation to the root logger.
The only way I figured out so far is to hack logging within context with following code:
It ain't pretty but it works. Any hints how to do it correctly?
The text was updated successfully, but these errors were encountered: