Teles is a small logger for Go.
Logging in telegram bot, file .log
, terminal.
go get -u github.com/4FR4KO-POVELECKO/teles
First, create bot in BotFather.
Create log directory:
mkdir log
Start:
package main
import (
"log"
"github.com/4FR4KO-POVELECKO/teles"
)
func main() {
err := teles.Start("TOKEN")
if err != nil {
log.Fatal(err)
}
}
Usage:
teles.Logger("log message")
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.