Boost logo

Boost :

Subject: Re: [boost] Boost.log: set_channel name dynamically for a basic_composite_logger
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2012-10-20 12:37:53


On Saturday 20 October 2012 09:11:45 syvyi wrote:
> The code I inserted above is the code which worked without adding loggers
> handling wchar_t.
>
> When I add
>
> manster::logger::instance( )->initialize( );
> std::basic_string< TCHAR> consequence = _T( "FormatMessage failure reason
> is not extracted" );\
> LOG_MEM_ALLOC_ERR( consequence, true );
>
> to test added code debugger gets
>
> void log( logger_type const & lg_type, std::wstring const &
logged_data,
> severity_level const & lvl )
> {
> if ( initialized )
> BOOST_LOG_SEV( wloggers_map[ lg_type ], lvl ) <<
logged_data.data( );
> }
> , however I do not see created folder log with file inside it.

Probably, because you didn't initialize the wide character part of the
library? Logging library components for different character types are not
related in the current trunk.


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