Releases: madkins23/go-slog
Releases · madkins23/go-slog
Score chart versions
- Template for test suite usage in another repository.
- Score chart drill-down versions.
Minor updates
- fix accidental
import
aliaswarning2
in various files - add verify test for
map[string]any
conversion to strings - add
-useWarnings
to bench and shareMismatch
andStringAny
warnings with verify tests - provide more information when complex cases fail, each definition string is in a map to a string representation of a log call with a sequence of method calls
Update version of phuslu/slog
This should be the "released" version of phuslu/slog
.
Update version of phuslu/slog
v0.9.9-beta-9 Update Benchmark Results
Move warnings from internal to infra
The warnings
package must be externally visible in order for verify tests to be included in handler-specific repositories.
phuslu/slog
Added verification and benchmark tests for phuslu/slog
.
Documentation Updates
- Mostly documentation updates.
- Attempt to move documentation from
README.MD
files intodoc.go
files where possible
so that plain oldgodoc
won't miss too much. - Replace
scripts/flash-bench
withscripts/comp
. - Change guts of
infra.EmptyAttr
for speed. - Remove deprecated functions.
- Change
json.Parse
to take byte arrays and return errors. - Add
json.Expect
which takes strings and returns errors within the resultingmap[string]any
.
ReplaceAttr work and handler summary/links on server
- Add
.svg
extension to URL for score chart - Create newer
ReplaceAttr
function generators:replace.ChangeCase
replace.ChangeKey
replace.ChangeValue
replace.Multiple
replace.RemoveKey
- Deprecate older
ReplaceAttr
functions:replace.LevelLowerCase
replace.LevelUpperCase
replace.LvlToLevel
replace.MessagetoMsg
replace.RemoveEmptyKey
replace.RemoveTime
- Update
ReplaceAttr
documentation - Move much of
replace/README.md
into code comments - Add
flash.Extras
behavior to provide a handler on whichReplaceAttr
functions can be tested - Add
madkinsreplattr.Creator
- exercises both
flash.Extras
andReplaceAttr
functions which cancel each other out - shows performance degradation compared to straight
madkins/flash
- exercises both
- Add handler summary and links to
infra.Creator
and plumb through to server handler pages - Test
strings.EqualFold
vs. two case conversions and start usingEqualFold
- Fix content scrolling on Firefox
- Fix label overlap case in upper right of scoring chart
- Add
internal/json.Parse
to simplify testing - Break up
cmd/server
slightly, had to fixscripts/server
and.github/workflows/pages.yml
Handler scoring
- Add handler scoring to server.
- Data parsers
internal/data/Benchmark
andinternal/data/Warnings
now return "scores" for different handlers. - Add scoring page to server including scatter plot chart of existing handler scores
- Refactor data scoring out of
internal/data/Benchmark
andinternal/data/Warnings
and behind aninterface
to support future changes.
- Data parsers
- Add verification test for ReplaceAttr function that depends on group names.
- Only track group stack if there is a non-nil ReplaceAttr option.
- Add warning usage lists to warnings server page.
- Change template file extension from
.tmpl
togohtml
to get GoLand support for file type, finding various minor errors in HTML.- Add
lang
attribute to<html>
tags on various server pages. - Create simple CSS styles to replace deprecated align and valign attributes and remove some redundant HTML bits.
- Clean up HTML warnings in various server template files.
- Add
Handlers
- Add two new handlers:
sloggy
a simplistic and slow but fully functional handlerflash
evolution ofsloggy
into a fairly fast handler.
- Handlers now live in the
handlers
directory. - Moved pre-existing
trace
handler into that directory as well.