Add logging to the server to enhance debuggability. Thread a slog.Logger through server-side structures and log important actions and errors.