mobx-logger icon indicating copy to clipboard operation
mobx-logger copied to clipboard

Plain Logging option

Open winkler1 opened this issue 5 years ago • 1 comments

Hi- I'd like a very simple logging format for when output is going to the Terminal (from unit tests). Would you be open to a PR with an option {plain: true} ?

Just simple stuff like -

var logAction = function logAction(ev) {
    if (!isLoggingEnabled(ev)) {
        return;
    }
    console.log(ev.type +" "+ ev.name + " " + JSON.stringify(ev.arguments));```

winkler1 avatar May 22 '19 14:05 winkler1

@winkler1 Sorry for bothering. If it's still relevant I've created a logger that allows to override the logger output: https://github.com/kubk/mobx-log

kubk avatar Oct 14 '21 08:10 kubk