Chronomatic Anomaly
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, "/");
}
);