Created
September 18, 2022 10:54
-
-
Save jmrobles/59e2ba89af5442c926067fd56c1d3494 to your computer and use it in GitHub Desktop.
Fluent hello world with fluent
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
import logging | |
from fluent_http import FluentHttpHandler | |
def main(): | |
logger = logging.getLogger('sample') | |
fluent_handler = FluentHttpHandler(tag="python.info") | |
logger.addHandler(fluent_handler) | |
logger.setLevel(logging.INFO) | |
logger.info("hello world") | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment