Open olegnysss opened 3 years ago
Hi, sorry about the delay in replying! The current logging situation is pretty bad, but #456 addresses this by allowing per-instance bot logging configuration. Once that's implemented, you can set the logger to something that writes entries to a file.
Still no answer?
You can implement
type BotLogger interface {
Println(v ...interface{})
Printf(format string, v ...interface{})
}
And set up to the tgbotapi.SetLogger
Does this fit as a solution?
By studying this package I didn't find possibility to write logs to file. Is this possible? If no, can I implement it and send Pull Request?