You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
slog.Info("DiceDB is starting, initialization in progress", slog.String("version", config.DiceDBVersion)) // not okayslog.Info("starting DiceDB", slog.String("version", config.DiceDBVersion)) // okay
Use structured logging with key-value pairs
slog.Info("running on port", config.Port) // not okayslog.Info("running with", slog.Int("port", config.Port)) // okay
Avoid logging redundant information
slog.Info("running in multi-threaded mode with", slog.String("mode", "multi-threaded"), slog.Int("num-shards", numShards)) // not okayslog.Info("running with", slog.String("mode", "multi-threaded"), slog.Int("num-shards", numShards)) // okay
Use Boolean values effectively
slog.Info("enable-watch is set to true", slog.Bool("enable-watch", true)) // not okayslog.Info("running with", slog.Bool("enable-watch", config.EnableWatch)) // okay
Log specific details over general statements
slog.Info("server is running") // not okayslog.Info("running with", slog.Int("port", config.Port)) // okay