Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plain Logging option #20

Open
winkler1 opened this issue May 22, 2019 · 1 comment
Open

Plain Logging option #20

winkler1 opened this issue May 22, 2019 · 1 comment

Comments

@winkler1
Copy link

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));```
@kubk
Copy link

kubk commented Oct 14, 2021

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants