CaptureLog¶ Name Mandatory Description Default Type ⬅️ Input The input is ignored. This shard captures log messages based on specified parameters. None Output ➡️ A sequence of captured log messages. [String] Size No The maximum number of logs to retain. 8 Int MinLevel No The minimum level of logs to capture. debug String Pattern No The pattern used to format the logs. %^[%l]%$ [%Y-%m-%d %T.%e] [T-%t] [%s::%#] %v String Suspend No Suspend execution until new logs are available. false Bool Captures log messages based on specified parameters, such as the number of messages to retain, the minimum log level, and the log format pattern. It can optionally suspend execution until new log messages are available. Examples¶ Code 1 2 3 4 5 6 7Msg("Hello shards!") CaptureLog( Size: 24 MinLevel: "info" Pattern: "%^[%l]%$ [%Y-%m-%d %T.%e] %v" ) | ExpectStringSeq Log