-
Notifications
You must be signed in to change notification settings - Fork 504
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
Comments
Can you give an example of why this would be useful? |
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. |
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 |
It would be so useful if you implemented such great feature.
The text was updated successfully, but these errors were encountered: