Skip to content

mdigger/log

Repository files navigation

A simple structured logging

GoDoc

In general, this is another "bike" for logging with blackjack.

package log

import (
    "os"
    "time"

    "github.com/mdigger/log"
)

func main() {
    log.Info("info message")
    log.With("time", time.Now()).Debug("debug")
    log.Warn("warn", "time", time.Now(), "state", true)
}