|
Boost Users : |
From: boost_at_[hidden]
Date: 2006-08-10 08:01:38
Hi guys, I've just been experimenting with boost::logging. I've got some of the examples to work but can't get scoped logging to work. The folowing code should work, according http://www.torjo.com/code/log/scoped.html
1 : #include <boost/log/log.hpp>
2 : #include <boost/log/functions.hpp>
3 :
4 : using namespace boost::logging;
5 :
6 : int main(int argc, char** argv)
7 : {
8 : logger gui("app.gui");
9 : gui.stream() << "hey - I've done something GUIsh" << std::endl;
10:
11: return 0;
12: }
However I get a compile error saying:
BuildTest\Main.cpp(9): error C2676: binary '<<' : 'boost::logging::logger_stream' does not define this operator or a conversion to a type acceptable to the predefined operator
Any ideas?
Thanks,
David
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net