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

Structured logging #4

Open
cgillum opened this issue Jan 27, 2022 · 0 comments
Open

Structured logging #4

cgillum opened this issue Jan 27, 2022 · 0 comments

Comments

@cgillum
Copy link
Member

cgillum commented Jan 27, 2022

Requirement

Structured logging should be added to the SDK to support tracing and debugging by developers and operators. Ideally, these logs integrate naturally with the logging system used by the application host.

Proposal

The java.util.logging.Logger class can be used as the main abstraction for logging, similar to the ILogger interface in .NET.

Other considerations

Azure Functions has a particular way of doing logging and tracing for Java-based function apps. Ideally any design we consider should integrate nicely with external runtime hosts (especially Azure Functions). Azure Functions code can call context.getLogger() to get an instance of java.util.logging.Logger to use for logging.

https://docs.microsoft.com/en-us/azure/azure-functions/functions-reference-java?tabs=bash%2Cconsumption#logger

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