// Custom severity level formatting function
std::string severity_level_as_urgency(
    logging::value_ref< logging::trivial::severity_level, logging::trivial::tag::severity > const& level)
{
    if (!level || level.get() == logging::trivial::info)
        return "normal";
    logging::trivial::severity_level lvl = level.get();
    if (lvl < logging::trivial::info)
        return "low";
    else
        return "critical";
}
 void operator() (logging::formatting_ostream& strm, logging::value_ref< point > const& value) const
 {
     if (value)
     {
         point const& p = value.get();
         m_format % p.m_x % p.m_y;
         strm << m_format;
         m_format.clear();
     }
 }