{"version":3,"sources":["../src/log.ts"],"sourcesContent":["// SPDX-FileCopyrightText: 2024 LiveKit, Inc.\n//\n// SPDX-License-Identifier: Apache-2.0\nimport type { LevelWithSilent, LoggerOptions } from 'pino';\nimport { pino } from 'pino';\n\nconst isProduction = process.env.NODE_ENV === 'production';\n\nconst defaultOptions: LoggerOptions = { name: 'lk-rtc' };\n\n/**\n * temporarily disabling the transport option as there might be a memory leak in some corner cases related to it\n * see https://github.com/pinojs/pino/issues/2370\n */\n// const devOptions: LoggerOptions = {\n//   ...defaultOptions,\n//   transport: {\n//     target: 'pino-pretty',\n//     options: {\n//       colorize: true,\n//     },\n//   },\n// };\n\nconst log = pino(defaultOptions);\nlog.level = isProduction ? 'info' : 'debug';\n\nexport type LogLevel = LevelWithSilent;\nexport { log };\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,kBAAqB;AAErB,MAAM,eAAe,QAAQ,IAAI,aAAa;AAE9C,MAAM,iBAAgC,EAAE,MAAM,SAAS;AAgBvD,MAAM,UAAM,kBAAK,cAAc;AAC/B,IAAI,QAAQ,eAAe,SAAS;","names":[]}