X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=common%2Flog.h;h=9df9470f2f7f364d59b106ae4df8d35f03bf1b65;hb=c0eb56796b07e6f3c2480b8284e06152a4ed24d9;hp=860c1a6466f024852cf96974d8109b37c8b26304;hpb=04cd54b79d84e63431230ecee106aede02151521;p=casparcg diff --git a/common/log.h b/common/log.h index 860c1a646..9df9470f2 100644 --- a/common/log.h +++ b/common/log.h @@ -43,6 +43,7 @@ namespace caspar { namespace log { namespace internal{ void init(); std::wstring get_call_stack(); +std::string current_exception_diagnostic_information(); } const char* remove_source_prefix(const char* file); @@ -102,12 +103,12 @@ BOOST_LOG_INLINE_GLOBAL_LOGGER_INIT(logger, caspar_logger) catch(...){} #define CASPAR_LOG_CURRENT_EXCEPTION() try{\ - CASPAR_LOG(error) << caspar::u16(boost::current_exception_diagnostic_information()) << L"Caught at (" << caspar::get_thread_info().name << L"):\n" << caspar::get_call_stack();\ + CASPAR_LOG(error) << caspar::u16(::caspar::log::internal::current_exception_diagnostic_information()) << L"Caught at (" << caspar::get_thread_info().name << L"):\n" << caspar::get_call_stack();\ }\ catch(...){} #define CASPAR_LOG_CURRENT_EXCEPTION_AT_LEVEL(lvl) try{\ - CASPAR_LOG(lvl) << caspar::u16(boost::current_exception_diagnostic_information()) << L"Caught at (" << caspar::get_thread_info().name << L"):\n" << caspar::get_call_stack();\ + CASPAR_LOG(lvl) << caspar::u16(::caspar::log::internal::current_exception_diagnostic_information()) << L"Caught at (" << caspar::get_thread_info().name << L"):\n" << caspar::get_call_stack();\ }\ catch(...){}