Download src/shared/logging/logger.ts from Bin29/ManimCat: direct link, hf CLI and curl.
- Browser
- Download file 274 Bytes
-
https://huggingface.co/spaces/Bin29/ManimCat/resolve/main/src/shared/logging/logger.ts
- Command line
-
hf download hf://spaces/Bin29/ManimCat/src/shared/logging/logger.ts
-
curl -L -o logger.ts https://huggingface.co/spaces/Bin29/ManimCat/resolve/main/src/shared/logging/logger.ts
274 Bytes
| /** | |
| * Logger factory and singleton. | |
| */ | |
| import { ConsoleLogger, type Logger } from './console-logger' | |
| export type { Logger } | |
| export const logger: Logger = new ConsoleLogger() | |
| export function createLogger(context: string): Logger { | |
| return new ConsoleLogger(context) | |
| } | |