How to configure BentoML docker container to write log messages to a file in a mounted dir?

226 views Asked by At

I'm not able to configure BentoML logs to be written in a mounted directory in my docker container.

The BentoML Logging documentation shows no parameter to write the logs to a file.

The Legacy property mapping doc page talks about a log dir, but if I try to put these properties in the bento_configuration.yml or bentofile.yml the tool complains that the properties are invalid.

I've also tried to configure Python logging from my bento_service.py file, but some info are still written to the Docker console log.

Where can find a BentoML configuration example that writes all log messages from the docker console to a file?

0

There are 0 answers