Skip to content

workflows.ConfigureConsoleLogging

go
func ConfigureConsoleLogging(level slog.Level)

Configure the default slog logger to write workflow logs to standard output at the given level.

The console handler composes with the Tilebox log exporter installed by workflows.NewClient(), so logs can be sent to Tilebox and printed locally. Calling ConfigureConsoleLogging more than once does not add duplicate console handlers.

Parameters

level slog.Level required

The minimum log level to print to the console.

Returns

Nothing.

Type to search…