Skip to content

Instantly share code, notes, and snippets.

@diogommartins
Last active October 29, 2018 02:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diogommartins/4139fe6a2ece705992ed59be5ba7f520 to your computer and use it in GitHub Desktop.
Save diogommartins/4139fe6a2ece705992ed59be5ba7f520 to your computer and use it in GitHub Desktop.
import asyncio
from aiologger import Logger
async def main():
logger = Logger.with_default_handlers(name='my-logger')
await logger.debug("Hello stdout !")
await logger.info("Hello stdout !")
await logger.warning("Hello stderr !")
await logger.error("Hello stderr !")
await logger.critical("Hello stderr !")
asyncio.run(main())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment