// Command relp_log_trial emits sample log messages through simplelog's // default slog handler for manual testing. package main import ( "log/slog" _ "sneak.berlin/go/simplelog" // Using underscore to only invoke init() ) // examplePort is the sample database port logged below. const examplePort = 5432 func main() { // Send some test messages with structured data slog.Info("Starting the application", slog.String("status", "initialized")) slog.Info( "Attempting to connect to database", slog.String("host", "localhost"), slog.Int("port", examplePort), ) slog.Warn("Using default configuration", slog.String("configuration", "default")) slog.Error( "Failed to load module", slog.String("module", "finance"), slog.String("error", "module not found"), ) slog.Info("Shutting down the application", slog.String("status", "stopped")) }