Skip to content

Releases: madkins23/go-slog

Score chart versions

07 May 13:40
Compare
Choose a tag to compare
Score chart versions Pre-release
Pre-release
  • Template for test suite usage in another repository.
  • Score chart drill-down versions.

Minor updates

06 May 01:32
Compare
Choose a tag to compare
Minor updates Pre-release
Pre-release
  • fix accidental import alias warning2 in various files
  • add verify test for map[string]any conversion to strings
  • add -useWarnings to bench and share Mismatch and StringAny 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

03 May 19:24
Compare
Choose a tag to compare
Pre-release

This should be the "released" version of phuslu/slog.

Update version of phuslu/slog

03 May 13:52
Compare
Choose a tag to compare
Pre-release
v0.9.9-beta-9

Update Benchmark Results

Move warnings from internal to infra

02 May 15:04
Compare
Choose a tag to compare
Pre-release

The warnings package must be externally visible in order for verify tests to be included in handler-specific repositories.

phuslu/slog

01 May 16:29
Compare
Choose a tag to compare
phuslu/slog Pre-release
Pre-release

Added verification and benchmark tests for phuslu/slog.

Documentation Updates

29 Apr 20:34
Compare
Choose a tag to compare
Documentation Updates Pre-release
Pre-release
  • Mostly documentation updates.
  • Attempt to move documentation from README.MD files into doc.go files where possible
    so that plain old godoc won't miss too much.
  • Replace scripts/flash-bench with scripts/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 resulting map[string]any.

ReplaceAttr work and handler summary/links on server

24 Mar 17:24
Compare
Choose a tag to compare
  • 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 which ReplaceAttr functions can be tested
  • Add madkinsreplattr.Creator
    • exercises both flash.Extras and ReplaceAttr functions which cancel each other out
    • shows performance degradation compared to straight madkins/flash
  • Add handler summary and links to infra.Creator and plumb through to server handler pages
  • Test strings.EqualFold vs. two case conversions and start using EqualFold
  • 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 fix scripts/server and .github/workflows/pages.yml

Handler scoring

16 Mar 16:00
Compare
Choose a tag to compare
Handler scoring Pre-release
Pre-release
  • Add handler scoring to server.
    • Data parsers internal/data/Benchmark and internal/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 and internal/data/Warnings and behind an interface to support future changes.
  • 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 to gohtml 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.

Handlers

12 Mar 22:13
Compare
Choose a tag to compare
Handlers Pre-release
Pre-release
  • Add two new handlers:
    • sloggy a simplistic and slow but fully functional handler
    • flash evolution of sloggy into a fairly fast handler.
  • Handlers now live in the handlers directory.
  • Moved pre-existing trace handler into that directory as well.