feat(logging): add structured logging across server and SDK

Replace raw fmt/log calls with structured slog logger (Go) and
console-based logger (TypeScript). Add request logging middleware.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Naiyuan Qing 2026-03-26 10:57:11 +08:00
parent 6da87dd725
commit 8983a9fefa
34 changed files with 510 additions and 113 deletions

View file

@ -1,7 +1,7 @@
package execenv
import (
"log"
"log/slog"
"os"
"os/exec"
"path/filepath"
@ -9,8 +9,8 @@ import (
"testing"
)
func testLogger() *log.Logger {
return log.New(os.Stderr, "[test] ", log.LstdFlags)
func testLogger() *slog.Logger {
return slog.Default()
}
func TestShortID(t *testing.T) {