UNPKG

guox-express

Version:

GuOx: Ultimate enterprise‑grade, AI & WASM‑powered Express security framework

16 lines (14 loc) 415 B
import winston from 'winston'; export type Logger = winston.Logger; export default function CryptoLogger(): Logger { return winston.createLogger({ transports:[ new winston.transports.Console(), new winston.transports.File({ filename:'secure.log', maxsize:1e7, tailable:true }) ], format: winston.format.combine( winston.format.timestamp(), winston.format.json() ) }); }