How to get Winston daily file rotate to log to corresponding level file
问题 I have defined custom levels for my application .They are as follows. protected levels: Level = { "error": 0, "warn": 1, "info": 2, "debug": 3, "trace": 4 }; I am using daily file rotate transport to get daily log in separate files. const options: Object = { name: this.level, filename: logFilePath, dirname: WinstonLogAgent.DIR_LOG, datePattern: "yyyyMMdd.", prepend: true, level: this.level, levels: this.levels, maxsize: this.maxFileSize, maxFiles: this.maxFileCount, handleExceptions: true,