Clarify docstring reference to LogHandlerContext.

This commit is contained in:
voussoir 2021-08-09 08:35:12 -07:00
parent 47e3a9d7d4
commit 41dd3eb0db
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -28,11 +28,10 @@ to opt-in to the use of operatornotify so that it does not surprise them.
If your application already uses the logging module, consider these options:
- add an instance of operatornotify.LogHandler to your logger,
- wrap your whole main call in a LogHandlerContext, or
- wrap your function call in a operatornotify.LogHandlerContext, or
- add @operatornotify.main_decorator to your main function.
Commandline usage:
> operatornotify --subject XXX [--body XXX]
--subject: