MLServer icon indicating copy to clipboard operation
MLServer copied to clipboard

Extend configurability of the built-in logger to account for runtime/model names

Open jklaise opened this issue 3 years ago • 0 comments
trafficstars

Using the built-in logger is convenient because it's auto-configured:https://github.com/SeldonIO/MLServer/blob/743778766be536865c847135af93fedbcc89ba96/mlserver/logging.py#L23 However, it falls short when trying to debug messages coming from multiple different models - all of these will be assigned the mlserver name so it's difficult to tell which message came from which component.. A workaround is to roll your own logging in each component, but this adds boilerplate for each of the components that require logging (unless the custom logging configuration is split out into some utility library, but then that brings in other complications).

jklaise avatar May 23 '22 14:05 jklaise