-import type { Format } from 'logform';
+import type { FormatWrap } from 'logform';
import { type Logger, createLogger, format, type transport } from 'winston';
import TransportType from 'winston/lib/winston/transports';
import DailyRotateFile from 'winston-daily-rotate-file';
const logger: Logger = createLogger({
level: Configuration.getLogLevel(),
- format: format.combine(format.splat(), (format[Configuration.getLogFormat()] as () => Format)()),
+ format: format.combine(format.splat(), (format[Configuration.getLogFormat()] as FormatWrap)()),
transports,
});
new TransportType.Console({
format: format.combine(
format.splat(),
- (format[Configuration.getLogFormat()] as () => Format)()
+ (format[Configuration.getLogFormat()] as FormatWrap)()
),
})
);