You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wrote a module that exposes a logger intended to expose a logger on the client side and server side, i.e. in pages, server/api and in client composables etc. I followed the descriptions in the documentation. However, when I attempt to access the logger it is undefined. How can I access the logger? Here is a link to the app. I attempt to access it using $logger or $this.logger but it comes back as undefined.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I wrote a module that exposes a logger intended to expose a logger on the client side and server side, i.e. in pages, server/api and in client composables etc. I followed the descriptions in the documentation. However, when I attempt to access the logger it is undefined. How can I access the logger? Here is a link to the app. I attempt to access it using $logger or $this.logger but it comes back as undefined.
https://stackblitz.com/edit/github-bfnrsx-dxkhza?file=src%2Fplugins%2Flogger.client.ts,src%2Fplugins%2Flogger.server.ts,src%2Fmodule.ts,package.json,src%2FlogLevels.ts,playground%2Fnuxt.config.ts
Beta Was this translation helpful? Give feedback.
All reactions