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

Question: enable specific logs #21

Open
benmonro opened this issue Oct 1, 2015 · 5 comments
Open

Question: enable specific logs #21

benmonro opened this issue Oct 1, 2015 · 5 comments

Comments

@benmonro
Copy link

benmonro commented Oct 1, 2015

I'm curious if there's a way to enable specific logs rather than all logging.

for example:

var bows = require('bows');
var personLogs = bows('person');
var companyLogs = bows('company')

Is there a way to specify that I only want to see company logs and not person logs? In the browser I can filter of course, but I'm looking for a way to do this in node. the npm debug package allows me to pass in --debug='company' for example, is there anything like that in bows?

@latentflip
Copy link
Owner

if you set localStorage.debug to a regular expression you can filter that way yeah, see the last point here: https://github.com/latentflip/bows#features

@benmonro
Copy link
Author

benmonro commented Oct 1, 2015

and how would that work in node?

@benmonro
Copy link
Author

benmonro commented Oct 6, 2015

@latentflip is there any answer for that? I'd like to use bows but it has to work (and be filterable) in both node and the browser...

@latentflip
Copy link
Owner

@benmonro oh, sorry, I misread your original question. Hmm I guess there's not at the moment :( I never particularly designed it for node (though there's no reason you couldn't make it). Would happily accept a PR to make it work better in node though.

Sorry :(

@benmonro
Copy link
Author

benmonro commented Oct 6, 2015

ok cool, thanks. It does currently work, just need to add the ability to filter, in the way that the npm debug module works...

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