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

SDK global debug mode configuration #668

Open
marandaneto opened this issue Oct 29, 2024 · 0 comments
Open

SDK global debug mode configuration #668

marandaneto opened this issue Oct 29, 2024 · 0 comments

Comments

@marandaneto
Copy link
Member

marandaneto commented Oct 29, 2024

Re #664 (comment)
Relates to #597

Eg:

Log(tag, level, message, args)

You can configure the minLevel for filtering such as error during SDK init.

debugConfig {
	enabled: false,
    minLevel: error
}

We'd call Log.log('DiskBufferingConfiguration', ErrorLevel.Error, 'The error is: %s', error) and this will call Logcat internally.
If enabled is enabled and if ErrorLevel is >= minLevel, we'd call logcat, otherwise not.

This most likely has to live in the OTel Java SDK (core) since many Log calls would live there.

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

1 participant