abrahammurciano / discord-lumberjack

A Python logging handler which sends its logs to a Discord Channel
GNU General Public License v3.0
4 stars 1 forks source link

Allow choosing channel depending on log lever #1

Closed abrahammurciano closed 2 years ago

abrahammurciano commented 2 years ago

Provide a way for the user to specify which channel to send logs to depending on the level of the log.

For example a user might have a channel for anything of level ERROR and above, in which they'll be notified for every message. They might also have a channel for WARNINGs which they won't be notified on but it might not necessarily be muted. Finally they might have a channel for DEBUG and INFO which will be muted and they'll only check it when they're looking for something specific.

Note that levels are really just integers, and users are allowed to specify their own, so the solution to this should take that into consideration

abrahammurciano commented 2 years ago

This is completely unnecessary. Users can achieve this simply by using several instances of the DiscordLogHandler, each set to different channels and log levels.

Perhaps it is worth noting this in the docs

abrahammurciano commented 2 years ago

This is now reflected in the documentation