Repository navigation
·
22 commits
to master
since this release
Immutable
release. Only release title and notes can be modified.
Core library
- New
TLogLevel,ILogEvent/TLogEventandILogEventAppenderindjLogAPI, 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
TAbstractLoggerbase class (djAbstractLogger) implementingILoggeronce;SimpleLogger,LazLoggerLoggerandStringsLoggernow derive from it instead of each re-implementing the fullILoggersurface and its own level enum. - New
ILogger.Debug/Info/Warn/Error/Traceoverloads 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
%dgiven a non-numeric argument) no longer raises an exception out ofLog.Debug/Info/Warn/Error/Trace. It now falls back to the raw format string with the error appended, via a newdjLogAPI.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.mdandexamples/README.md, documenting how to build/run the test suite and what each example project demonstrates.
Full Changelog: v1.0.8...v1.1.0