winston日志管理3

时间:2022-04-23 01:32:48

To specify custom log format you should set formatter function for transport. Currently supported transports are: Console, File, Memory. Options object will be passed to the format function. It‘s general properties are: timestamp, level, message, meta. Depending on the transport type may be additional properties.