void Logger::log(LoggingLevel level, const std::string& msg, const char* func, const char* file, int line) noexcept { try { auto full_msg = fmt::format("[{}] [{}] [thread={}] [{}:{}] [{}] {}\n", stringify(level), format_current_time(), std::this_thread::get_id(), file, line, func, msg); append(full_msg.data(), full_msg.size()); } catch (...) { // Cannot handle errors in logging } }
utf8string isis::tool::log::LogAggregator::create_closing_message() { static boost::format fmt("Log closed at %s."); fmt % format_current_time(); return fmt.str(); }