diff options
Diffstat (limited to 'logging/sinks/encoding.go')
| -rw-r--r-- | logging/sinks/encoding.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/logging/sinks/encoding.go b/logging/sinks/encoding.go index e1c558a..42848ec 100644 --- a/logging/sinks/encoding.go +++ b/logging/sinks/encoding.go @@ -57,6 +57,8 @@ func RecordAll(r slog.Record) iter.Seq2[string, slog.Value] { } } +type Encoder func(rec slog.Record, ReplaceAttr func(string, slog.Value) (slog.Value, bool)) (string, error) + func LogFmtEncoder(rec slog.Record, ReplaceAttr func(string, slog.Value) (slog.Value, bool)) (string, error) { str := []string{} for key, value := range RecordAll(rec) { |
