log/slog
package for logging.
By default logs will go to the slog default handler. However, you may provide
any slog handler upon creating the Restate server instance, which allows you to
direct the logs to other log libraries:
*slog.Logger
that suppresses duplicate log statements during replays:
WithLogger
,
you can provide false
as the second argument, in which case logs will not be
dropped during replay allowing you to handle them as you prefer. You can still
determine whether they would have been dropped using
rcontext.LogContextFrom
on the context passed to your log handler.