15 lines
243 B
Go
15 lines
243 B
Go
package logger
|
|
|
|
import (
|
|
"os"
|
|
"time"
|
|
|
|
"github.com/rs/zerolog"
|
|
)
|
|
|
|
var Logger zerolog.Logger
|
|
|
|
func init() {
|
|
output := zerolog.ConsoleWriter{Out: os.Stdout, TimeFormat: time.RFC3339}
|
|
Logger = zerolog.New(output).With().Timestamp().Logger()
|
|
} |