services.maubot.settings.logging
NixOS option
Python logging configuration. See section 16.7.2 of the Python documentation for more info.
type: attribute setDefault
declared in: nixos/modules/services/matrix/maubot.nixView source on NixOS/nixpkgs →{
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;
}