summaryrefslogtreecommitdiff
path: root/extensions/source/logging
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/source/logging')
-rw-r--r--extensions/source/logging/consolehandler.cxx5
-rw-r--r--extensions/source/logging/csvformatter.cxx4
-rw-r--r--extensions/source/logging/filehandler.cxx5
-rw-r--r--extensions/source/logging/logger.cxx4
-rw-r--r--extensions/source/logging/plaintextformatter.cxx4
-rw-r--r--extensions/source/logging/simpletextformatter.cxx3
6 files changed, 25 insertions, 0 deletions
diff --git a/extensions/source/logging/consolehandler.cxx b/extensions/source/logging/consolehandler.cxx
index a241126cc7d6..d1455baa3178 100644
--- a/extensions/source/logging/consolehandler.cxx
+++ b/extensions/source/logging/consolehandler.cxx
@@ -50,6 +50,9 @@ namespace logging
typedef ::cppu::WeakComponentImplHelper < XConsoleHandler
, XServiceInfo
> ConsoleHandler_Base;
+
+ namespace {
+
class ConsoleHandler :public ::cppu::BaseMutex
,public ConsoleHandler_Base
{
@@ -91,6 +94,8 @@ namespace logging
void leaveMethod( MethodGuard::Access );
};
+ }
+
ConsoleHandler::ConsoleHandler(const Reference<XComponentContext> &context,
const css::uno::Sequence<css::uno::Any> &arguments)
:ConsoleHandler_Base( m_aMutex )
diff --git a/extensions/source/logging/csvformatter.cxx b/extensions/source/logging/csvformatter.cxx
index bce6922dcb62..42c51a348701 100644
--- a/extensions/source/logging/csvformatter.cxx
+++ b/extensions/source/logging/csvformatter.cxx
@@ -39,6 +39,8 @@ namespace logging
using ::com::sun::star::uno::Sequence;
using ::com::sun::star::logging::LogRecord;
+ namespace {
+
// formats for csv files as defined by RFC4180
class CsvFormatter : public cppu::WeakImplHelper<css::logging::XCsvLogFormatter, css::lang::XServiceInfo>
{
@@ -79,6 +81,8 @@ namespace logging
bool m_MultiColumn;
css::uno::Sequence< OUString > m_Columnnames;
};
+
+ }
} // namespace logging
// private helpers
diff --git a/extensions/source/logging/filehandler.cxx b/extensions/source/logging/filehandler.cxx
index bec33521418c..cd62535ad15c 100644
--- a/extensions/source/logging/filehandler.cxx
+++ b/extensions/source/logging/filehandler.cxx
@@ -60,6 +60,9 @@ namespace logging
typedef ::cppu::WeakComponentImplHelper < XLogHandler
, XServiceInfo
> FileHandler_Base;
+
+ namespace {
+
class FileHandler :public ::cppu::BaseMutex
,public FileHandler_Base
{
@@ -122,6 +125,8 @@ namespace logging
void impl_doStringsubstitution_nothrow( OUString& _inout_rURL );
};
+ }
+
FileHandler::FileHandler(const css::uno::Reference<XComponentContext> &context,
const css::uno::Sequence<css::uno::Any> &arguments)
:FileHandler_Base( m_aMutex )
diff --git a/extensions/source/logging/logger.cxx b/extensions/source/logging/logger.cxx
index 43dbe1a3a2a2..1770ca377175 100644
--- a/extensions/source/logging/logger.cxx
+++ b/extensions/source/logging/logger.cxx
@@ -49,6 +49,8 @@ namespace logging
using ::com::sun::star::logging::XLogHandler;
using ::com::sun::star::logging::LogRecord;
+ namespace {
+
class EventLogger : public cppu::BaseMutex,
public cppu::WeakImplHelper<css::logging::XLogger>
{
@@ -110,6 +112,8 @@ namespace logging
virtual Reference< XLogger > SAL_CALL getDefaultLogger( ) override;
};
+ }
+
EventLogger::EventLogger( const Reference< XComponentContext >& _rxContext, const OUString& _rName )
:m_aHandlers( m_aMutex )
,m_nEventNumber( 0 )
diff --git a/extensions/source/logging/plaintextformatter.cxx b/extensions/source/logging/plaintextformatter.cxx
index 58884a36512c..23392b61c491 100644
--- a/extensions/source/logging/plaintextformatter.cxx
+++ b/extensions/source/logging/plaintextformatter.cxx
@@ -38,6 +38,8 @@ namespace logging
using ::com::sun::star::logging::LogRecord;
using ::com::sun::star::uno::XInterface;
+ namespace {
+
class PlainTextFormatter : public cppu::WeakImplHelper<css::logging::XLogFormatter, css::lang::XServiceInfo>
{
public:
@@ -55,6 +57,8 @@ namespace logging
virtual Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
};
+ }
+
PlainTextFormatter::PlainTextFormatter()
{
}
diff --git a/extensions/source/logging/simpletextformatter.cxx b/extensions/source/logging/simpletextformatter.cxx
index 003c978233b1..542f696e5d34 100644
--- a/extensions/source/logging/simpletextformatter.cxx
+++ b/extensions/source/logging/simpletextformatter.cxx
@@ -37,6 +37,8 @@ namespace logging
using css::logging::LogRecord;
using namespace css::uno;
+namespace
+{
class SimpleTextFormatter
: public cppu::WeakImplHelper<css::logging::XLogFormatter, css::lang::XServiceInfo>
{
@@ -54,6 +56,7 @@ private:
virtual sal_Bool SAL_CALL supportsService(const OUString& _rServiceName) override;
virtual Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
};
+}
SimpleTextFormatter::SimpleTextFormatter() {}