Record view in sofka now shows logs in the order the application wrote them, with styled parts and flattened nested objects. This release also adds the default-container annotation for logs and humanizes byte counts in events.
New features
- Record view keeps the field order of the application. A
›separates the message from the fields, and keys with whitespace,=, or"are quoted. - Record view shows the
loggername before the message aslogger: message. This makes it easy to see which component wrote a line. - Record view styles each part of a row, such as the time, level, logger, message, key, and value. Only
WARNandERRORrows keep a tint, soDEBUGrows are easier to read. - Record view flattens nested objects into dotted keys, for example
object.kind=Lease. Rows are shorter and easier to read. - The new
[logs]optionsrecord_time_formatandrecord_time_zoneset the time format of record view.record_time_formattakes a strftime format.record_time_zonetakesutcorlocal. - The
default-containerannotation (kubectl.kubernetes.io/default-container) now works for logs, attach, transfer, and the container picker. Thelkey streams only the default container. Theakey in the logs view switches between the default container and all containers. The container picker lists the default container first. - The events
MESSAGEcolumn shows byte counts in binary units. For example,80474558 bytesbecomes76.7 MiB. The describe and YAML views keep the original text.
Fixes
- Search highlighting no longer panics on text where lowercase changes the length of a character. Raw lines now highlight such text correctly.
Other changes
- The
nkl-sofkacache is now built for every push tomain, for Linux and macOS. Flakes that trackmainno longer compile sofka.
What's Changed
- feat: show the logger name before the message in record view by @nklmilojevic in #847
- feat: honor the default-container annotation for logs, attach, transfer, and the container picker by @Korel in #843
- feat: add a configurable time format for record view by @nklmilojevic in #846
- chore(deps): update rust crate jiff to v0.2.38 by @renovate[bot] in #848
- chore(deps): update rust crate zstd to v0.14.1 by @renovate[bot] in #851
- feat: keep field order and separate the message in record view by @TomerKarniol in #850
- chore(deps): update github actions by @renovate[bot] in #853
- feat: humanize byte counts in event messages by @nklmilojevic in #854
- feat: style each part of a record view row by @nklmilojevic in #855
- feat: flatten nested objects into dotted keys in record view by @nklmilojevic in #856
New Contributors
- @Korel made their first contribution in #843
- @TomerKarniol made their first contribution in #850
Full Changelog: v0.31.5...v0.31.6