This message was deleted.
# ask-for-help
s
This message was deleted.
c
Hi Shihgian, for 1.0, we moved to a more standardized way of handling logs in BentoML. The default behavior is only logging to stdout, which works nicely with most cloud native setup. User can also choose to configure logging behavior with the python standard logging library for the “bentoml” logging namespace: https://docs.bentoml.org/en/latest/guides/logging.html#logging-configuration
Here’s a quick example mimicking the 0.13 behavior:
Copy code
import logging
from logging.handlers import RotatingFileHandler

logger = logging.getLogger('bentoml')
handler = RotatingFileHandler('my_log.log', maxBytes=2000, backupCount=10)
logger.addHandler(handler)

svc = bentoml.Service(...)
...
🙏 2