26#include <com/sun/star/logging/XLogFormatter.hpp>
27#include <com/sun/star/uno/XComponentContext.hpp>
28#include <com/sun/star/logging/LogRecord.hpp>
32#include <rtl/string.hxx>
44 css::uno::Reference< css::logging::XLogFormatter >
48 css::uno::Reference< css::uno::XComponentContext >
56 const css::uno::Reference< css::uno::XComponentContext >& _rxContext,
57 ::osl::Mutex& _rMutex,
70 const css::uno::Reference< css::logging::XLogFormatter >&
73 setFormatter(
const css::uno::Reference< css::logging::XLogFormatter >& _rxFormatter )
109 bool formatForPublishing(
const css::logging::LogRecord& _rRecord, OString& _out_rEntry )
const;
135 void initFromSettings( const ::comphelper::NamedValueCollection& _rSettings );
LogHandlerHelper(const css::uno::Reference< css::uno::XComponentContext > &_rxContext, ::osl::Mutex &_rMutex, ::cppu::OBroadcastHelper &_rBHelper)
void setLevel(const sal_Int32 _nLevel)
bool getEncoding(OUString &_out_rEncoding) const
void enterMethod()
prepares implementation of a public accessible method of a log handler
const css::uno::Reference< css::logging::XLogFormatter > & getFormatter() const
::cppu::OBroadcastHelper & m_rBHelper
css::uno::Reference< css::uno::XComponentContext > m_xContext
bool setEncoding(std::u16string_view _rEncoding)
void initFromSettings(const ::comphelper::NamedValueCollection &_rSettings)
initializes the instance from a collection of named settings
sal_Int32 getLevel() const
void setFormatter(const css::uno::Reference< css::logging::XLogFormatter > &_rxFormatter)
bool formatForPublishing(const css::logging::LogRecord &_rRecord, OString &_out_rEntry) const
formats a record for publishing it
rtl_TextEncoding getTextEncoding() const
css::uno::Reference< css::logging::XLogFormatter > m_xFormatter
bool getEncodedTail(OString &_out_rTail) const
retrieves our formatter's tail, encoded with our encoding
bool getEncodedHead(OString &_out_rHead) const
retrieves our formatter's heading, encoded with our encoding
rtl_TextEncoding m_eEncoding