I followed this post: http://www.boost.org/doc/libs/1_59_0/libs/log/doc/html/log/detailed/attributes.html
log( string nameValue) {
attrs::mutable_constant< string > Name(nameValue);
logger::get().add_attribute("Name", Name);
Name.set(nameValue);
cout << "name is: " << Name;
}
Only one time the Name attribute is set with nameValue and remains as contant for every. So I using set() method to set new value.But the Name is not getting updated with new nameValue when we pass a new value in log() method.
Boost version: 1.59 and OS: Ubuntu 15.04
Any solution to this problem.
Thanks in advance.