title: How to create a helper function in NuxtJs to use inside vuex and components?
body: <p>I want to create a plugin for Nuxtjs to log everything I want only in client mode, something like this : </p>
  
  <pre><code>// ~/plugins/client-log.js
  export default ({ app }, inject) =&gt; {
      app.clog = string =&gt; console.log(string)
  }
  </code></pre>
  
  <p>This  plugin is working in components where I have access to context for example: </p>
  
  <pre><code>export default {
  
    fetch({app}){
         app.clog("some string")
    }
  };
  </code></pre>
  
  <p>But I want to be able to use it inside vuex (actions, mutations...). How can I do that? </p>
  
  <p>Thanks in advance.</p>