Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import asyncio
import os
import aiologger
async def main():
logger = aiologger.Logger.with_default_handlers(level=10)
await logger.info("Hello stdout !")
await logger.error("Hello stderr !")
for handler in logger.handlers:
fileno = handler.stream.transport._pipe.fileno()
print(os.get_blocking(fileno))
asyncio.run(main())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment