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

Improved filtering #1

Open
mambrus opened this issue Nov 5, 2018 · 0 comments
Open

Improved filtering #1

mambrus opened this issue Nov 5, 2018 · 0 comments

Comments

@mambrus
Copy link
Owner

mambrus commented Nov 5, 2018

Logging is also a way of printf debugging. For RT sensitive issues it may very well be the only way to understand an issue, i.e. when time is a factor of the problem itself.

For debugging purposes by enabling LOG_LEVEL=DEBUG, logs can clobber the view (and also slow down execution which in turn may cause ghost issues).

I.e. prevent that too much is logged (by log-probes from every corner of your code), by enabling only what is needed. IOW a finer granularity of control than LOG_LEVEL alone.

LOGX can be used much like linux kernel ftrace probes, by turning specific areas on and off. Thereby leaving the probes in code, but activate them only on demand using filtering.

ftrace does this using chains of rules. Exactly how liblog will leverage on the concept isn't determined as it's needed to consider more use-cases. From deeply embedded with no kernel support, to high-end UN*X based systems with abilities to use collaborating services.

Additional consideration to take into account is also to keep the configuration as low as possible to not prevent incorporation in (especially) resource constrained projects.

@mambrus mambrus changed the title Improved filering Improved filtering Nov 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant