mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
Update the logging library to accept context as either direct objects or functions (MaybeLoggerContextFn), providing better ergonomics while maintaining performance optimization through lazy evaluation. Changes: - Add MaybeLoggerContextFn type for flexible context handling - Update logger() factory to accept context as object or function - Update all LoggerApi methods to support both context formats - Enhance README with comprehensive examples and migration guide - Document performance benefits of function-based context - Add backward compatibility notes for v2.1.0 enhancement The new API is fully backward compatible - both direct objects and function wrappers work seamlessly.