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

Not able to use custom console.* methods #23

Closed
sisou opened this issue Dec 7, 2016 · 0 comments
Closed

Not able to use custom console.* methods #23

sisou opened this issue Dec 7, 2016 · 0 comments

Comments

@sisou
Copy link

sisou commented Dec 7, 2016

Hello!

In my code I am extending the console object with custom wrapper functions, such as console.debug(), console.fatal() etc.

Internally they just call console.log() and sometimes some minor extra code.

Now, I tried adding these method names to the options.include array, but since these function names have no levelPriority assigned, they are not returned by the getAllowedLogFunctions() and thus filtered out at https://github.com/starak/node-console-stamp/blob/master/main.js#L67.

Is there a way to amend these filters so that functions that are in the options.include array are always included?

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

1 participant