kutuluk / loglevel-plugin-remote

A loglevel plugin for sending browser logs to a server
MIT License
102 stars 36 forks source link

Plugin specific level? #16

Closed fatso83 closed 5 years ago

fatso83 commented 6 years ago

Cool library, but I was wondering if there was a way of restricting the log level just for the remote part? In my own logger I have code like this

    consoleLogger(...args);

    // log errors on server
    if (level === 'error') {
      dispatchLoggingAction(args);
    }

Meaning I don't care about logging anything but errors to the server. Is there a way of achieving this in your logger (read the code, but didn't see any trace of it)?

kutuluk commented 6 years ago

In the current implementation, this is not provided. But I like this idea. I'll deal with this after the end of Js13kGames =)

kutuluk commented 5 years ago

Done