KaymeKaydex / go-vshard-router

go vshard-router implementation for tarantool
MIT License
21 stars 3 forks source link

StdoutLogger: support log level #84

Closed nurzhan-saktaganov closed 1 month ago

nurzhan-saktaganov commented 2 months ago

Add new structure that writes to Stdout and supports log level, example:

type StdoutLogLevel int

const (
    StdoutLogDebug StdoutLogLevel = iota
    StdoutLogInfo
    StdoutLogWarn
    StdoutLogError
)

type StdoutLoggerf struct{
    LogLevel StdoutLogLevel
}