boost :: logger와 함께 boost :: singleton을 사용하면 실행 파일의 모든 객체가 동일한 로거에 액세스 할 수 있고 문자열을 덤프 할 수 있습니다.누구나 boost :: logger와 함께 boost :: singleton을 사용 했습니까?
class logger_singleton
: public boost::mutexed_singleton<logger_singleton>
{
private
boost::logger blogger;
public:
logger_singleton(boost::restricted);
// public interface, e.g:
int log_this_string(const std::string &a){blogger->strm()<<a;}
};
누구에게도 이것을 시도한 사람이 있습니까?
지금 boost :: singleton이 있습니까? 최근인가요? – Rob