swork-logger is a swork middleware designed to log info for every fetch request made through the service worker. It is built with TypeScript and async methods.
npm install swork-logger
yarn add swork-logger
It is suggested to include
logger early in the request pipeline to be able to log all fetch requests. The default message will provide contextual information regarding each request including the http method, url, status and execution time. In addition, each log entry is color coded based upon the status.
If desired, the logging implementation can be overridden: