Winston's own level methods, when the installed Winston already accepts a function as the message
(PR #2626); otherwise undefined. It asks a throwaway logger to log a function and looks at what
reaches the format: the function's result with the feature, the function itself without.
Parameters
Optionalcreate: (options?:LoggerOptions)=>Logger
Winston's createLogger; a parameter so tests can stand in for a Winston that has
the feature.
Winston's own level methods, when the installed Winston already accepts a function as the message (PR #2626); otherwise undefined. It asks a throwaway logger to log a function and looks at what reaches the format: the function's result with the feature, the function itself without.