()
| 260 | } |
| 261 | |
| 262 | function getRootInternal(): RootLoggerImpl { |
| 263 | const globalAny = globalThis as Record<symbol, unknown>; |
| 264 | const existing = globalAny[ROOT_SYMBOL]; |
| 265 | if (existing instanceof RootLoggerImpl) return existing; |
| 266 | const fresh = new RootLoggerImpl(); |
| 267 | globalAny[ROOT_SYMBOL] = fresh; |
| 268 | return fresh; |
| 269 | } |
| 270 | |
| 271 | export function getRootLogger(): RootLogger { |
| 272 | return getRootInternal(); |
no outgoing calls
no test coverage detected