Skip to content

log4cpp v5.0.0

Latest

Choose a tag to compare

@lwhttpdorg lwhttpdorg released this 04 Jul 13:26

πŸš€ Release v5.0.0

We are excited to announce the release of log4cpp v5.0.0! This major release brings modern C++ standards, cross-platform enhancements, and a safer, more modern logging interface.

πŸ”Š What's New

🍏 macOS Support

  • Fully compatible with macOS environments. log4cpp is now truly cross-platform!

⚑️ Modern C++20 Upgrade

  • The entire codebase has been upgraded to C++20. Take advantage of modern language features and improved performance.

πŸ›  Modernized Formatting Interface

  • Breaking Change: Completely removed the legacy printf-style formatting interfaces.
  • New Feature: Adopted typesafe and modern std::format-style interfaces for all logging macros and functions.

πŸ“ Migration Guide (From v4.x to v5.0.0)

If you are upgrading from an older version, you will need to update your log formatting syntax:

Old Style (v4.x):

logger.info("User %s logged in with ID %d", username.c_str(), userId);

New Style (v5.0.0):

logger.info("User {} logged in with ID {}", username, userId);