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

mask or regexp for tags and app packages #123

Open
allco opened this issue Jan 28, 2016 · 3 comments
Open

mask or regexp for tags and app packages #123

allco opened this issue Jan 28, 2016 · 3 comments

Comments

@allco
Copy link

allco commented Jan 28, 2016

It would be so useful if you implemented such great feature.

@JakeWharton
Copy link
Owner

Can you give an example of why this would be useful?

@allco
Copy link
Author

allco commented Jan 29, 2016

When you work with couple of apps in the same time, it would be nice to see logs from all of them not only from the one. It will be possible to deliver just the name of your company and then logs from all your company's apps will appear.

Regarding tags, If you working with colleagues of the same project it is nice way to add special mark to your own logs and then filter output by this mark. For example I'm using the special logger that automatically takes the name of last class from callstack and then add special (programmer-related or context-related) symbol and uses it as tag.

@elevenetc
Copy link

elevenetc commented Mar 9, 2020

Regexp for tags (or just a tag prefix) might be useful to filter out app module logs or particular library logs.

For example if app has user module:

pidcat app.package.com -t "User:*"
> User:View created
> User:View get user
> User:Repository check cache
> User:Repository call network api

Filtering images library logs:

pidcat app.package.com -t "Images*"
> ImagesCore instance created
> ImagesHttpClient loading https://hello.com/png.jpg
> ImagesHttpClient failed to load https://hello.com/png.jpg
> ImagesScheduler deliver error of https://hello.com/png.jpg

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

3 participants