You can modify the filter used for log events setting the configuration entrylog-filter, or alternatively setting the RUST_LOG environment variable. Check the RUST_LOG documentation for more details about the filter format. For example to enable debug logs on all Restate components, and info on other logs, set the filter as info,restate=debug. See the paragraph below components and log events for more details about filter targets.
When testing Restate locally, we recommend keeping the default configuration.When deploying in production, we recommend setting the log level to info and enabling the json format in conjunction with a log collector, so you can later inspect and filter logs based on its event fields.We recommend to set up logging to a more verbose filter, and use the pretty format. Some example filters:
info,restate_ingress_http=trace,restate_invoker=trace,restate=debug,hyper=debug for network related issues
info,restate_worker::partition::effects=debug to get insights on the state machine effects
info,restate_admin=trace to check service discovery and registration