74
// configured maximum length are truncated at a UTF-8 rune boundary; once the
75
// log exceeds the configured maximum entries, the earliest entries are dropped.
76
>
func (e *EventLog) LogEvent(ctx chasm.MutableContext, msg string) {
eventlog.go
77
>
tw := tweakablesFromContext(ctx)
78
>
maxEntries, maxMessageLen := tw.EventLogMaxEntries, tw.EventLogMaxMessageLen
79
>
80
>
if len(msg) > maxMessageLen {
81
// Back off to the nearest UTF-8 rune boundary so we don't split a
82
// multibyte rune.