Hey, i was wondering if we could code a sampling interface, it would be nice to have an intermediate writter, so i can hash or count things in the log entry before writing it with the configured writer.
Can't access Entry fields directly as they're stored in a byte buffer, can only use e.Value() which returns the raw JSON bytes
edit: oh i see now, that the output is built step by step as a json string, so we can't get a variable like msg, level separately.
Hey, i was wondering if we could code a sampling interface, it would be nice to have an intermediate writter, so i can hash or count things in the log entry before writing it with the configured writer.
Can't access Entry fields directly as they're stored in a byte buffer, can only use e.Value() which returns the raw JSON bytes
edit: oh i see now, that the output is built step by step as a json string, so we can't get a variable like msg, level separately.