{"version":3,"file":"utils/logger.mjs","sources":["webpack://@multimodal/agent/./src/utils/logger.ts"],"sourcesContent":["/*\n * Copyright (c) 2025 Bytedance, Inc. and its affiliates.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { ConsoleLogger, LogLevel } from '@agent-infra/logger';\n\nexport { ConsoleLogger };\n// Create the root logger\nconst rootLogger = new ConsoleLogger();\n\n// Set default log level based on environment variables\nif (typeof process !== 'undefined' && process.env.AGENT_DEBUG) {\n  rootLogger.setLevel(LogLevel.DEBUG);\n} else {\n  rootLogger.setLevel(LogLevel.SUCCESS);\n}\n\n/**\n * Create and get a module-specific logger\n * @param module The module name, which will be used as the log prefix\n * @returns A logger instance specific to the module\n */\nexport function getLogger(module: string) {\n  return rootLogger.spawn(module);\n}\n\n// Export the main logger and log levels for consumers\nexport { rootLogger, LogLevel };\n"],"names":["rootLogger","ConsoleLogger","process","LogLevel","getLogger","module"],"mappings":";;;;;AASA,MAAMA,aAAa,IAAIC;AAGvB,IAAI,AAAmB,eAAnB,OAAOC,WAA2BA,QAAQ,GAAG,CAAC,WAAW,EAC3DF,WAAW,QAAQ,CAACG,SAAS,KAAK;KAElCH,WAAW,QAAQ,CAACG,SAAS,OAAO;AAQ/B,SAASC,UAAUC,MAAc;IACtC,OAAOL,WAAW,KAAK,CAACK;AAC1B"}