1. mst
  2. ooo340

Commits

b_michaelsen  committed 1e307bb

#i105835# removing explict flushes in comphelper as logging::Logger handles flushing

  • Participants
  • Parent commits 0dc0f3a
  • Branches default

Comments (0)

Files changed (1)

File comphelper/source/misc/uieventslogger.cxx

View file
             UiEventsLogger_Impl();
             void initializeLogger();
             void logDispatch(const ::com::sun::star::util::URL& url,
-				const Sequence<PropertyValue>& args);
+                const Sequence<PropertyValue>& args);
             void logRotated();
             void logVcl(const ::rtl::OUString& parent_id,
                 sal_Int32 window_type,
             logdata[3] = URL_FILE;
         else
             logdata[3] = url.Main;
-		OSL_TRACE("UiEventsLogger Logging: %s,%s,%s,%s,%s,%s,%s,%s",
-			OUStringToOString(logdata[0],RTL_TEXTENCODING_UTF8).getStr(),
-			OUStringToOString(logdata[1],RTL_TEXTENCODING_UTF8).getStr(),
-			OUStringToOString(logdata[2],RTL_TEXTENCODING_UTF8).getStr(),
-			OUStringToOString(logdata[3],RTL_TEXTENCODING_UTF8).getStr(),
-			OUStringToOString(logdata[4],RTL_TEXTENCODING_UTF8).getStr(),
-			OUStringToOString(logdata[5],RTL_TEXTENCODING_UTF8).getStr(),
-			OUStringToOString(logdata[6],RTL_TEXTENCODING_UTF8).getStr(),
-			OUStringToOString(logdata[7],RTL_TEXTENCODING_UTF8).getStr(),
-			OUStringToOString(logdata[8],RTL_TEXTENCODING_UTF8).getStr());
+        OSL_TRACE("UiEventsLogger Logging: %s,%s,%s,%s,%s,%s,%s,%s",
+            OUStringToOString(logdata[0],RTL_TEXTENCODING_UTF8).getStr(),
+            OUStringToOString(logdata[1],RTL_TEXTENCODING_UTF8).getStr(),
+            OUStringToOString(logdata[2],RTL_TEXTENCODING_UTF8).getStr(),
+            OUStringToOString(logdata[3],RTL_TEXTENCODING_UTF8).getStr(),
+            OUStringToOString(logdata[4],RTL_TEXTENCODING_UTF8).getStr(),
+            OUStringToOString(logdata[5],RTL_TEXTENCODING_UTF8).getStr(),
+            OUStringToOString(logdata[6],RTL_TEXTENCODING_UTF8).getStr(),
+            OUStringToOString(logdata[7],RTL_TEXTENCODING_UTF8).getStr(),
+            OUStringToOString(logdata[8],RTL_TEXTENCODING_UTF8).getStr());
         m_Logger->log(LogLevel::INFO, m_Formatter->formatMultiColumn(logdata));
-		m_LogHandler->flush();
         m_SessionLogEventCount++;
     }
 
     {
         Sequence<OUString> logdata = Sequence<OUString>(COLUMNS);
         logdata[0] = ETYPE_ROTATED;
-		OSL_TRACE("UiEventsLogger Logging: %s,%s,%s,%s,%s,%s,%s,%s",
-			OUStringToOString(logdata[0],RTL_TEXTENCODING_UTF8).getStr(),
-			OUStringToOString(logdata[1],RTL_TEXTENCODING_UTF8).getStr(),
-			OUStringToOString(logdata[2],RTL_TEXTENCODING_UTF8).getStr(),
-			OUStringToOString(logdata[3],RTL_TEXTENCODING_UTF8).getStr(),
-			OUStringToOString(logdata[4],RTL_TEXTENCODING_UTF8).getStr(),
-			OUStringToOString(logdata[5],RTL_TEXTENCODING_UTF8).getStr(),
-			OUStringToOString(logdata[6],RTL_TEXTENCODING_UTF8).getStr(),
-			OUStringToOString(logdata[7],RTL_TEXTENCODING_UTF8).getStr(),
-			OUStringToOString(logdata[8],RTL_TEXTENCODING_UTF8).getStr());
+        OSL_TRACE("UiEventsLogger Logging: %s,%s,%s,%s,%s,%s,%s,%s",
+            OUStringToOString(logdata[0],RTL_TEXTENCODING_UTF8).getStr(),
+            OUStringToOString(logdata[1],RTL_TEXTENCODING_UTF8).getStr(),
+            OUStringToOString(logdata[2],RTL_TEXTENCODING_UTF8).getStr(),
+            OUStringToOString(logdata[3],RTL_TEXTENCODING_UTF8).getStr(),
+            OUStringToOString(logdata[4],RTL_TEXTENCODING_UTF8).getStr(),
+            OUStringToOString(logdata[5],RTL_TEXTENCODING_UTF8).getStr(),
+            OUStringToOString(logdata[6],RTL_TEXTENCODING_UTF8).getStr(),
+            OUStringToOString(logdata[7],RTL_TEXTENCODING_UTF8).getStr(),
+            OUStringToOString(logdata[8],RTL_TEXTENCODING_UTF8).getStr());
         m_Logger->log(LogLevel::INFO, m_Formatter->formatMultiColumn(logdata));
-		m_LogHandler->flush();
     }
 
     void UiEventsLogger_Impl::logVcl(
         logdata[6] = id;
         logdata[7] = method;
         logdata[8] = param;
-		OSL_TRACE("UiEventsLogger Logging: %s,%s,%s,%s,%s,%s,%s,%s",
-			OUStringToOString(logdata[0],RTL_TEXTENCODING_UTF8).getStr(),
-			OUStringToOString(logdata[1],RTL_TEXTENCODING_UTF8).getStr(),
-			OUStringToOString(logdata[2],RTL_TEXTENCODING_UTF8).getStr(),
-			OUStringToOString(logdata[3],RTL_TEXTENCODING_UTF8).getStr(),
-			OUStringToOString(logdata[4],RTL_TEXTENCODING_UTF8).getStr(),
-			OUStringToOString(logdata[5],RTL_TEXTENCODING_UTF8).getStr(),
-			OUStringToOString(logdata[6],RTL_TEXTENCODING_UTF8).getStr(),
-			OUStringToOString(logdata[7],RTL_TEXTENCODING_UTF8).getStr(),
-			OUStringToOString(logdata[8],RTL_TEXTENCODING_UTF8).getStr());
+        OSL_TRACE("UiEventsLogger Logging: %s,%s,%s,%s,%s,%s,%s,%s",
+            OUStringToOString(logdata[0],RTL_TEXTENCODING_UTF8).getStr(),
+            OUStringToOString(logdata[1],RTL_TEXTENCODING_UTF8).getStr(),
+            OUStringToOString(logdata[2],RTL_TEXTENCODING_UTF8).getStr(),
+            OUStringToOString(logdata[3],RTL_TEXTENCODING_UTF8).getStr(),
+            OUStringToOString(logdata[4],RTL_TEXTENCODING_UTF8).getStr(),
+            OUStringToOString(logdata[5],RTL_TEXTENCODING_UTF8).getStr(),
+            OUStringToOString(logdata[6],RTL_TEXTENCODING_UTF8).getStr(),
+            OUStringToOString(logdata[7],RTL_TEXTENCODING_UTF8).getStr(),
+            OUStringToOString(logdata[8],RTL_TEXTENCODING_UTF8).getStr());
         m_Logger->log(LogLevel::INFO, m_Formatter->formatMultiColumn(logdata));
-		m_LogHandler->flush();
         m_SessionLogEventCount++;
     }