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

Allow to pass custom log function for debug #215

Open
sergeysova opened this issue Aug 6, 2022 · 1 comment
Open

Allow to pass custom log function for debug #215

sergeysova opened this issue Aug 6, 2022 · 1 comment
Labels
RFC Some new feature that should be discussed

Comments

@sergeysova
Copy link
Member

const customLog = (argument) => console.log(util.inspect(myObject, {showHidden: false, depth: null, colors: true}))

debug({ fn: customLog }, $store, event, someFx)
@sergeysova sergeysova added the enhancement Improvement in existing feature label Aug 6, 2022
@sergeysova
Copy link
Member Author

What about to use log instead of fn?

@sergeysova sergeysova added RFC Some new feature that should be discussed and removed enhancement Improvement in existing feature labels Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFC Some new feature that should be discussed
Projects
None yet
Development

No branches or pull requests

1 participant