Skip to content

Chronomatic Anomaly

Compare
Choose a tag to compare
@3Hren 3Hren released this 14 Feb 14:42
· 33 commits to master since this release

Added

  • Lambda expressions with capture-list can now be used as formatting arguments. This allows to log arguments that require heavyweight transformation before the result can be used.

For example:

logger.log(0, "[::] - esafronov [10/Oct/2000:13:55:36 -0700] 'GET {} HTTP/1.0' 200 2326",
    [&](std::ostream& stream) -> std::ostream& {
        return stream << boost::join(paths, "/");
    }
);