Closed DominicRoyStang closed 1 year ago
Options are passed to the parent Transport class (named TransportStream in the winston-transport package) via super(opts) in the constructor, so those properties should also be exposed when initializing SlackHook.
Transport
TransportStream
winston-transport
super(opts)
Those properties are:
format?: logform.Format; level?: string; silent?: boolean; handleExceptions?: boolean; handleRejections?: boolean;
In my case, I needed this personally to access the format key to use winston.format.timestamp() and winston.format.metadata().
format
winston.format.timestamp()
winston.format.metadata()
Looks good! Just merged, gonna push to NPM momentarily.
New release made! Should be live on NPM momentarily.
Options are passed to the parent
Transport
class (namedTransportStream
in thewinston-transport
package) viasuper(opts)
in the constructor, so those properties should also be exposed when initializing SlackHook.Those properties are:
In my case, I needed this personally to access the
format
key to usewinston.format.timestamp()
andwinston.format.metadata()
.