cjongseok / mtproto

Telegram MTProto and its proxy (over gRPC) in Go (golang). API Layer: 71
Apache License 2.0
151 stars 20 forks source link

Disabling logging #16

Closed FedorZaytsev closed 5 years ago

FedorZaytsev commented 5 years ago

Hi. I really like your lib, but is there is any way to configure logger which are you using inside your lib?

cjongseok commented 5 years ago

@FedorZaytsev Thanks for your interest in this project. You can disable logging with

slog.DisableLogging()

Or you can redirect logs to a file

slog.SetLogOutputAsFile(filename)