@staticcms/proxy-server-lite
Version:
Proxy server to be used with Static CMS proxy backend
16 lines (12 loc) • 343 B
text/typescript
import winston from 'winston';
const { combine, colorize, simple } = winston.format;
type LogOptions = {
level: string;
};
export function createLogger({ level }: LogOptions) {
return winston.createLogger({
level,
format: combine(colorize(), simple()),
transports: [new winston.transports.Console()],
});
}