Closed anselmo-coolstay closed 1 year ago
Thanks @anselmo-coolstay - indeed, this is a feature missing. As a workaround, you could just create multiple loggers with dedicated format by calling winston.createLogger
, but I agree it is less convenient.
My application needs two transports. One is for Cloud Logging and the other is for console. Both transports should have different formats.
According to https://github.com/winstonjs/winston#common-transport-options, Winston support the format for a transport. But, the options for LoggingWinston's constructor seems not to support it.
How can I set them differently?