Bad practice:
slog.Info("DiceDB is starting, initialization in progress", slog.String("version", config.DiceDBVersion))
Good practice:
slog.Info("starting DiceDB", slog.String("version", config.DiceDBVersion))
Bad practice:
slog.Info("running on port", config.Port)
Good practice:
slog.Info("running with", slog.Int("port", config.Port))
Bad practice:
slog.Info("running in multi-threaded mode with", slog.String("mode", "multi-threaded"), slog.Int("num-shards", numShards))
Good practice:
slog.Info("running with", slog.String("mode", "multi-threaded"), slog.Int("num-shards", numShards))
Bad practice:
slog.Info("enable-watch is set to true", slog.Bool("enable-watch", true))
Good practice:
slog.Info("running with", slog.Bool("enable-watch", config.EnableWatch))
Bad practice:
slog.Info("server is running")
Good practice:
slog.Info("running with", slog.Int("port", config.Port), slog.Bool("enable-watch", config.EnableWatch))
Bad practice:
slog.Info("Starting DiceDB", slog.String("version", config.DiceDBVersion))
Good practice:
slog.Info("starting DiceDB", slog.String("version", config.DiceDBVersion))