Logging - HexCorpProgramming/HexCorpDiscordAI GitHub Wiki

To make hunting for bugs easier, we use the Python logging framework to get pretty logs.

Configuration

How logging works is configured in ai.py. Currently it routes all logs to stdout and the file ai.log. Log message are decorated with precise timestamps, log level and module (ai for the Mxtress AI, discord for discord.py API).

Issues

It seems we broke standard print() with our current log setup. The output seems to not be written anywhere and after enough calls to print() the buffer overflows and throws an error, causing the AI or a subroutine of it to crash.

Remember to use log() instead of print()