tensorflow / serving

A flexible, high-performance serving system for machine learning models
https://www.tensorflow.org/serving
Apache License 2.0
6.18k stars 2.19k forks source link

Logging - json format / custom format #2069

Open GautamSinghania opened 2 years ago

GautamSinghania commented 2 years ago

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:

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 commented 2 years ago

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.

Csehpi commented 2 months ago

Hello, any update on this topic?