Creates a fetch middleware that logs HTTP requests and responses.
When called without arguments withLogging(), it uses the default logger that:
withLogging()
console.log
console.error
Important: the default logger uses both console.log and console.error so it should not be used with stdio transports and applications.
stdio
Logging configuration options
A fetch middleware function
Creates a fetch middleware that logs HTTP requests and responses.
When called without arguments
withLogging(), it uses the default logger that:console.logconsole.errorImportant: the default logger uses both
console.logandconsole.errorso it should not be used withstdiotransports and applications.