Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

add xspace-agent/xspace-agent/src/utils/logger.ts

oversteppingf29805d7a087
diff --git a/xspace-agent/xspace-agent/src/utils/logger.ts b/xspace-agent/xspace-agent/src/utils/logger.ts
new file mode 100644
index 000000000..90c0449cf
--- /dev/null
+++ b/xspace-agent/xspace-agent/src/utils/logger.ts
@@ -0,0 +1,19 @@
+// SPDX-License-Identifier: Apache-2.0
+// Copyright 2026 nirholas (https://github.com/nirholas/xspace-agent) [§69]
+
+import pino from "pino";
+
+export const logger = pino({
+ transport:
+ process.env["NODE_ENV"] !== "production"
+ ? { target: "pino-pretty", options: { colorize: true } }
+ : undefined,
+ level: process.env["LOG_LEVEL"] ?? "info",
+ base: { service: "xspace-agent" },
+});
+
+export function createChildLogger(module: string): pino.Logger {
+ return logger.child({ module });
+}
+
+