Highly-opinionated (ex-bullshit-free) MTPROTO proxy for Telegram. If you use v1.0 or upgrade broke you proxy, please read the chapter Version 2
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819
  1. package logger
  2. import "github.com/9seconds/mtg/v2/mtglib"
  3. type noopLogger struct{}
  4. func (n noopLogger) Named(_ string) mtglib.Logger { return n }
  5. func (n noopLogger) BindInt(_ string, _ int) mtglib.Logger { return n }
  6. func (n noopLogger) BindStr(_, _ string) mtglib.Logger { return n }
  7. func (n noopLogger) Info(_ string) {}
  8. func (n noopLogger) Warning(_ string) {}
  9. func (n noopLogger) Debug(_ string) {}
  10. func (n noopLogger) InfoError(_ string, _ error) {}
  11. func (n noopLogger) WarningError(_ string, _ error) {}
  12. func (n noopLogger) DebugError(_ string, _ error) {}
  13. func NewNoopLogger() mtglib.Logger {
  14. return noopLogger{}
  15. }