Created
October 1, 2017 17:51
-
-
Save nloadholtes/edaa7a13a947fff4fc8ec392d0f59122 to your computer and use it in GitHub Desktop.
Using MagicURL in a logging handler
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from logzio.handler import LogzioHandler | |
import logging | |
logger = logging.getLogger(__name__) | |
logz_handler = LogzioHandler(url=MagicURL("https://example.com/logging")) | |
logger.addHandler(logz_handler) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment