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

Logging - json format / custom format #2069

Open
GautamSinghania opened this issue Oct 12, 2022 · 1 comment
Open

Logging - json format / custom format #2069

GautamSinghania opened this issue Oct 12, 2022 · 1 comment

Comments

@GautamSinghania
Copy link

GautamSinghania commented Oct 12, 2022

Feature Request

Describe the problem the feature is intended to solve

My organization allows logs to be persisted only if they follow certain standards. As the current Tensorflow logs cannot be formatted, we do not have a way of persisting these logs.

Describe the solution

I want to control the format of my logs so that I can follow the organization standards. Either one of the following will solve my usecase:

  • Convert the log to json format
  • Customize the log to follow a certain format

As an added feature, it would be really helpful if I can access request specific elements like tracers in these logs.

Describe alternatives you've considered

If Python logging was integrated in Tensorflow serving, we could follow that to control the logs.

Additional context

Version: 2.8.2-gpu

@GautamSinghania
Copy link
Author

GautamSinghania commented Oct 13, 2022

For understanding, where are logs from tensorflow routed to? I assume error logs are routed to STDERR and others are routed to STDOUT, but please let me know if this assumption is wrong.

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

4 participants