mirror of
https://github.com/alexgo-io/redstone-cache-layer.git
synced 2026-01-12 16:53:15 +08:00
9 lines
192 B
TypeScript
9 lines
192 B
TypeScript
import consola, { JSONReporter } from "consola";
|
|
import { isProduction } from "../config";
|
|
|
|
if (isProduction) {
|
|
consola.setReporters([new JSONReporter()]);
|
|
}
|
|
|
|
export const logger = consola;
|