mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-04 01:03:47 +03:00
12 lines
365 B
TypeScript
12 lines
365 B
TypeScript
|
import winston from "winston";
|
||
|
|
||
|
export const logger = winston.createLogger({
|
||
|
level: "info",
|
||
|
format: winston.format.json(),
|
||
|
transports: [
|
||
|
new winston.transports.File({ filename: "error.log", level: "error" }),
|
||
|
new winston.transports.File({ filename: "info.log", level: "info" }),
|
||
|
new winston.transports.File({ filename: "combined.log" }),
|
||
|
],
|
||
|
});
|