This message was deleted.
# ask-for-help
s
This message was deleted.
👀 2
j
What kind of log would you like to store into files?
p
I've come back to work the log configuration, but I'm still confused. I'd like to start something simple. Just to log everything that is written to the docker console to a file in a mounted directory. I've come back to work the log configuration, but I'm still confused. I'd like to start something simple. Just to log everything that is written to the docker console to a file in a mounted directory.
I can't find how to specify how to log to a file. I've tried to use
api_server.logging.directory=/mnt/logdir
or just
logging.directory=/mnt/dir
. To set them in the
bentofile.yml
and to set them using the environment variable BENTOML_CONFIG_OPTIONS I've also tried to directly config the log in my bento_service.py file, but it just logs part of the info. Other log messages go to the console. I've even tried to edit the
entrypoing.sh
script to redirect the output, but it didn't work. I want to be able to log unexpected exceptions an log messages to my data. Where can I find an example of configuration that saves docker log messages to a file?
The Logging documentation https://docs.bentoml.org/en/latest/guides/logging.html shows no parameter to select the log directory
The Legacy property mapping https://docs.bentoml.org/en/0.13-lts/guides/configuration.html#legacy-property-mapping 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.
u
I have the same issue. When I looked up the relevant history, I found that the logging handler that used to save logs to the active.log, prediction.log, and feedback.log files has disappeared from that PR. https://github.com/bentoml/BentoML/pull/2268/files#diff-817be0b2c54015ed472833bb8cab4088c450fd62eeb6d6578d822105e6231af3 When I checked the status of v.1.0.20, it appears to only write logs to stdout. https://github.com/bentoml/BentoML/blob/v1.0.20/src/bentoml/_internal/log.py#L31 Does this mean that loggging to the file is no longer supported?