|
Boost Users : |
Subject: Re: [Boost-users] [log] translating 3rd party logging messages
From: Olaf Peter (ope-devel_at_[hidden])
Date: 2014-07-16 09:54:26
> The problem is more of cosmetic nature; the logging format output is
> different from what is used normally - it looks alien. Since the
> context data is available I assume I can write an own logging source
> writing/fill the log records filled with the context information.
> Additionally I want to add a "Scope" or "Library" flag "Qt" (Scope may
> be not the best choise since it's used in another context). But I
> didn't find an example in the boost.log module to find the entry; is
> writing an own source the right way? How to use it in the
> qt_message_translator?
>
as far I understood so far, the entry point is described at
http://www.boost.org/doc/libs/1_54_0/libs/log/doc/html/log/detailed/sources.html.
if (logging::record rec = m_logger.open_record())
{
rec.attribute_values().insert("Message",
attrs::make_attribute_value(std::string("Connection established")));
m_logger.push_record(boost::move(rec));
}
where I can write a record with Message and LineID. But what is the
complementary attribute for Filename and Function??
Thanks,
Olaf
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net