Skip to content

slf4p 1.1.0

Latest

Choose a tag to compare

@michaelJustin michaelJustin released this 19 Sep 06:58
· 22 commits to master since this release
Immutable release. Only release title and notes can be modified.

Core library

  • New TLogLevel, ILogEvent/TLogEvent and ILogEventAppender in djLogAPI, encapsulating a single log call (level, logger name, message, format args, timestamp, exception) for future structured/queryable logging backends. ILogger's public API is unchanged.
  • New TAbstractLogger base class (djAbstractLogger) implementing ILogger once; SimpleLogger, LazLoggerLogger and StringsLogger now derive from it instead of each re-implementing the full ILogger surface and its own level enum.
  • New ILogger.Debug/Info/Warn/Error/Trace overloads for logging one or two objects directly, without wrapping them in an array-of-const literal.
  • A log call whose format string and arguments don't match (e.g. a %d given a non-numeric argument) no longer raises an exception out of Log.Debug/Info/Warn/Error/Trace. It now falls back to the raw format string with the error appended, via a new djLogAPI.SafeFormat.

Internal / toolchain

  • Headless Console FPCUnit build mode for src/test/Unittests.lpi, so the test suite can run unattended.
  • GitHub Actions workflow (tests.yml) running the FPCUnit suite headless on Windows and Linux.
  • UNIT-TESTS.md and examples/README.md, documenting how to build/run the test suite and what each example project demonstrates.

Full Changelog: v1.0.8...v1.1.0