9 lines
219 B
TypeScript
9 lines
219 B
TypeScript
import log from "loglevel";
|
|
import { apply, reg } from "loglevel-plugin-prefix";
|
|
|
|
export function initLogger() {
|
|
log.setLevel(import.meta.env.VITE_LOG_LEVEL);
|
|
reg(log);
|
|
apply(log, {template: '[%t] %l:'});
|
|
}
|