Package slog provides structured logging, in which log records include a message, a severity level, and various other attributes expressed as key-value pairs.
There're too many log messages. however, sometimes detail log messages are necessary for debugging.
native log doesn't support severity levels. Thus, I'm gonna move to log/slog.
[x] Add Info, Warning, Error methods to print messages to stderr
[x] Write a handler to send messages to telegram (Migrate from TelegramWriter to TelegramHandler)
(No need to write a new handler, just using TelegramWriter was enough)
[x] Make Warning(), Error() sends messages to telegram using TelegramHandler
Package slog provides structured logging, in which log records include a message, a severity level, and various other attributes expressed as key-value pairs.
There're too many log messages. however, sometimes detail log messages are necessary for debugging. native log doesn't support severity levels. Thus, I'm gonna move to
log/slog
.