A typed message template created via ParseStringSchemaBuilder.
When passed to a Logger log method, the logger uses template as the
messageTemplate (so events with the same shape are grouped in Seq /
SigNoz / ClickHouse) and derives the rendered message by interpolating
template with the supplied parameters.
Example
import { s } from'@cleverbrush/schema';
// Build a reusable typed template once consttmpl = s.parseString('Todo #{TodoId} "{Title}" created by {UserId}');
// All log sites share the same messageTemplate → groupable in the UI logger.info(tmpl, { TodoId:1, Title:'Buy milk', UserId:'u-42' });
A typed message template created via
ParseStringSchemaBuilder.When passed to a
Loggerlog method, the logger usestemplateas themessageTemplate(so events with the same shape are grouped in Seq / SigNoz / ClickHouse) and derives the rendered message by interpolatingtemplatewith the supplied parameters.Example