Skip to content

Instantly share code, notes, and snippets.

@jmrobles
Created September 18, 2022 10:54
Show Gist options
  • Save jmrobles/59e2ba89af5442c926067fd56c1d3494 to your computer and use it in GitHub Desktop.
Save jmrobles/59e2ba89af5442c926067fd56c1d3494 to your computer and use it in GitHub Desktop.
Fluent hello world with fluent
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