Python logging configuration. See section 16.7.2 of the Python documentation for more info.
Declarations
Type
attribute set
Default
{
formatters = {
colored = {
"()" = "maubot.lib.color_log.ColorFormatter";
format = "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s";
};
normal = {
format = "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s";
};
};
handlers = {
console = {
class = "logging.StreamHandler";
formatter = "colored";
};
file = {
backupCount = 10;
class = "logging.handlers.RotatingFileHandler";
filename = "./maubot.log";
formatter = "normal";
maxBytes = 10485760;
};
};
loggers = {
aiohttp = {
level = "INFO";
};
mau = {
level = "DEBUG";
};
maubot = {
level = "DEBUG";
};
};
root = {
handlers = [
"file"
"console"
];
level = "DEBUG";
};
version = 1;
}