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

remove all prefixes? #222

Closed
dcsan opened this issue Sep 13, 2015 · 4 comments
Closed

remove all prefixes? #222

dcsan opened this issue Sep 13, 2015 · 4 comments

Comments

@dcsan
Copy link

dcsan commented Sep 13, 2015

I'm trying to use debug to debug my tests. is there a way to remove all the timestamp and info before my message? I get a bunch of:

Sun, 13 Sep 2015 04:05:29 GMT mbot:WeChatAdapter .... debug msg

at the beginning of every line.

i guess i could pipe the output through sed but maybe there are some option params to reduce the clutter that can be passed to debug directly?

@dcsan
Copy link
Author

dcsan commented Sep 13, 2015

edit: sed doesn't seem too easy to tame this since its multiline

DEBUG="mbot:*" DEBUG_DIFF=0 \
    jasmine-node --watch src --color --autotest $FILE1 | sed  's/.* mbot/-/g'

doesn't seem to do it for me.

@pulkitsinghal
Copy link

pulkitsinghal commented Jun 4, 2016

@dcsan - I don't think debug spits out that timestamp: Sun, 13 Sep 2015 04:05:29 GMT before mbot:WeChatAdapter ... something else must be pre-appending it, right?

@dcsan
Copy link
Author

dcsan commented Jun 4, 2016

dunno, i switched to log4js and havent looked back.

@thebigredgeek
Copy link
Contributor

V3 is implementing the concept of middleware which should make this pretty easy. Check it out here: #370

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

No branches or pull requests

3 participants