Boost logo

Boost :

Subject: Re: [boost] Boost.log: set_channel name dynamically for a basic_composite_logger
From: syvyi (alexander.svk_at_[hidden])
Date: 2012-10-13 11:01:22


I checked out a trunk. After replacement there're still compiler complains:

first of all I needed to edit
src::multi_thread_model<boost::log2_mt_nt5::aux::light_rw_mutex> where I put
log2_mt_nt5 instead of log_mt_nt5. If there's a new documentation for v.2,
tell.

1>------ Build started: Project: boost_logging, Configuration: Debug Win32
------
1>Build started 10/13/2012 6:00:05 PM.
1>InitializeBuildStatus:
1> Touching "Debug\boost_logging.unsuccessfulbuild".
1>ClCompile:
1> stdafx.cpp
1> boost_logging.cpp
1>c:\users\alexander\documents\visual studio
2010\projects\sankom\boost_logging\boost_logging\boost_logging.cpp(61):
error C2065: 'my_logger' : undeclared identifier
1>c:\users\alexander\documents\visual studio
2010\projects\sankom\boost_logging\boost_logging\boost_logging.cpp(61):
error C2275: 'my_logger_mt' : illegal use of this type as an expression
1> c:\users\alexander\documents\visual studio
2010\projects\sankom\boost_logging\boost_logging\boost_logging.cpp(46) : see
declaration of 'my_logger_mt'
1>c:\users\alexander\documents\visual studio
2010\projects\sankom\boost_logging\boost_logging\boost_logging.cpp(62):
error C2448: 'BOOST_LOG_DECLARE_GLOBAL_LOGGER_INIT' : function-style
initializer appears to be a function definition
1>c:\users\alexander\documents\visual studio
2010\projects\sankom\boost_logging\boost_logging\boost_logging.cpp(92):
error C2039: 'logger' : is not a member of 'boost::log2_mt_nt5::sources'
1>c:\users\alexander\documents\visual studio
2010\projects\sankom\boost_logging\boost_logging\boost_logging.cpp(92):
error C2065: 'logger' : undeclared identifier
1>c:\users\alexander\documents\visual studio
2010\projects\sankom\boost_logging\boost_logging\boost_logging.cpp(92):
error C2065: 'lg' : undeclared identifier
1>c:\users\alexander\documents\visual studio
2010\projects\sankom\boost_logging\boost_logging\boost_logging.cpp(93):
error C2448: 'foo' : function-style initializer appears to be a function
definition
1>c:\users\alexander\documents\visual studio
2010\projects\sankom\boost_logging\boost_logging\boost_logging.cpp(108):
error C2039: 'logger' : is not a member of 'boost::log2_mt_nt5::sources'
1>c:\users\alexander\documents\visual studio
2010\projects\sankom\boost_logging\boost_logging\boost_logging.cpp(108):
error C2065: 'logger' : undeclared identifier
1>c:\users\alexander\documents\visual studio
2010\projects\sankom\boost_logging\boost_logging\boost_logging.cpp(108):
error C2146: syntax error : missing ';' before identifier 'lg'
1>c:\users\alexander\documents\visual studio
2010\projects\sankom\boost_logging\boost_logging\boost_logging.cpp(108):
error C2065: 'lg' : undeclared identifier
1>c:\users\alexander\documents\visual studio
2010\projects\sankom\boost_logging\boost_logging\boost_logging.cpp(110):
error C2664: 'boost::log2_mt_nt5::basic_core<CharT>::add_global_attribute' :
cannot convert parameter 2 from 'boost::shared_ptr<T>' to 'const
boost::log2_mt_nt5::attribute &'
1> with
1> [
1> CharT=char
1> ]
1> and
1> [
1> T=boost::log2_mt_nt5::attribute
1> ]
1> Reason: cannot convert from 'boost::shared_ptr<T>' to 'const
boost::log2_mt_nt5::attribute'
1> with
1> [
1> T=boost::log2_mt_nt5::attribute
1> ]
1> No user-defined-conversion operator available that can perform
this conversion, or the operator cannot be called
1>c:\users\alexander\documents\visual studio
2010\projects\sankom\boost_logging\boost_logging\boost_logging.cpp(112):
error C2664: 'boost::log2_mt_nt5::basic_core<CharT>::add_global_attribute' :
cannot convert parameter 2 from 'boost::shared_ptr<T>' to 'const
boost::log2_mt_nt5::attribute &'
1> with
1> [
1> CharT=char
1> ]
1> and
1> [
1> T=boost::log2_mt_nt5::attribute
1> ]
1> Reason: cannot convert from 'boost::shared_ptr<T>' to 'const
boost::log2_mt_nt5::attribute'
1> with
1> [
1> T=boost::log2_mt_nt5::attribute
1> ]
1> No user-defined-conversion operator available that can perform
this conversion, or the operator cannot be called
1>c:\users\alexander\documents\visual studio
2010\projects\sankom\boost_logging\boost_logging\boost_logging.cpp(114):
error C2664: 'boost::log2_mt_nt5::basic_core<CharT>::add_global_attribute' :
cannot convert parameter 2 from 'boost::shared_ptr<T>' to 'const
boost::log2_mt_nt5::attribute &'
1> with
1> [
1> CharT=char
1> ]
1> and
1> [
1> T=boost::log2_mt_nt5::attribute
1> ]
1> Reason: cannot convert from 'boost::shared_ptr<T>' to 'const
boost::log2_mt_nt5::attribute'
1> with
1> [
1> T=boost::log2_mt_nt5::attribute
1> ]
1> No user-defined-conversion operator available that can perform
this conversion, or the operator cannot be called
1>c:\users\alexander\documents\visual studio
2010\projects\sankom\boost_logging\boost_logging\boost_logging.cpp(120):
error C2653: 'my_logger' : is not a class or namespace name
1>c:\users\alexander\documents\visual studio
2010\projects\sankom\boost_logging\boost_logging\boost_logging.cpp(120):
error C2228: left of '.channel' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\alexander\documents\visual studio
2010\projects\sankom\boost_logging\boost_logging\boost_logging.cpp(120):
error C3861: 'get': identifier not found
1>c:\users\alexander\documents\visual studio
2010\projects\sankom\boost_logging\boost_logging\boost_logging.cpp(121):
error C2653: 'my_logger' : is not a class or namespace name
1>c:\users\alexander\documents\visual studio
2010\projects\sankom\boost_logging\boost_logging\boost_logging.cpp(121):
error C2228: left of '.open_record' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\alexander\documents\visual studio
2010\projects\sankom\boost_logging\boost_logging\boost_logging.cpp(121):
error C3861: 'get': identifier not found
1>c:\users\alexander\documents\visual studio
2010\projects\sankom\boost_logging\boost_logging\boost_logging.cpp(121):
fatal error C1903: unable to recover from previous error(s); stopping
compilation
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:11.70
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

--
View this message in context: http://boost.2283326.n4.nabble.com/Boost-log-set-channel-name-dynamically-for-a-basic-composite-logger-tp4637012p4637074.html
Sent from the Boost - Dev mailing list archive at Nabble.com.

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk