logger-v
v0.1.0
Published
## Installation ``` yarn add logger-v ```
Downloads
4
Readme
Logger for vue.js 3
Installation
yarn add logger-v
Usage
// main.js
import { createApp } from "vue";
import { plugin } from "logger-v";
import App from "./App.vue";
createApp(App)
.use(plugin, { mode: 'prod' })
.mount("#app");
// example.js
import { useLogger } from "logger-v";
const logger = useLogger("NAME_MODULE");
logger.log("Message");
To display logs. Launch your browser dev tools and run the code.
localStorage.setItem("logger:mode",'dev')
``