Skip to main content
The Java SDK uses log4j2 as logging facade. To configure the logging, add the file resources/log4j2.properties:
If you want to do filtering of the logs, you can use log4j2 filters. Logging on the INFO level is enough for most use cases, but you can set the log level of the dev.restate classes to DEBUG and TRACE if you want more info about the internal SDK operations. The SDK injects the following additional metadata to the logging context that can be used for filtering as well:
  • restateInvocationTarget: Invocation Target, e.g. counter.Counter/Add.
  • restateInvocationId: Invocation ID.
  • restateInvocationStatus: Invocation status, can be WAITING_START, REPLAYING, PROCESSING, CLOSED.