Update of /cvsroot/eas-dev/eas-dev/components/logger/src
In directory sc8-pr-cvs1:/tmp/cvs-serv4762/src
Modified Files:
consolelogger.cxx consolelogger.hxx logger.cxx
Log Message:
minor bugfixes in logger components. changes in tests, now it is able to
set XConsoleLogger as log handler. Congs! :)
Index: consolelogger.cxx
===================================================================
RCS file: /cvsroot/eas-dev/eas-dev/components/logger/src/consolelogger.cxx,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- consolelogger.cxx 3 Feb 2003 09:06:51 -0000 1.3
+++ consolelogger.cxx 7 Feb 2003 11:03:52 -0000 1.4
@@ -98,7 +98,8 @@
virtual void SAL_CALL log(const OUString& message)
throw (RuntimeException)
{
- cout << message;
+ // utf-8 is temporary, need to make it better
+ cout << OUStringToOString(message,RTL_TEXTENCODING_UTF8).getStr() << endl;
cout.flush();
}
Index: consolelogger.hxx
===================================================================
RCS file: /cvsroot/eas-dev/eas-dev/components/logger/src/consolelogger.hxx,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- consolelogger.hxx 3 Feb 2003 09:06:52 -0000 1.3
+++ consolelogger.hxx 7 Feb 2003 11:03:52 -0000 1.4
@@ -15,7 +15,7 @@
using namespace ::org::openeas::util;
-#define CONSOLELOGGERIMPLNAME "org.openeas.util.ConsoleLogger"
+#define CONSOLELOGGERIMPLNAME "org.openeas.util.XConsoleLogger"
class XConsoleLoggerImpl: public XConsoleLogger, public XServiceInfo
{
Index: logger.cxx
===================================================================
RCS file: /cvsroot/eas-dev/eas-dev/components/logger/src/logger.cxx,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- logger.cxx 3 Feb 2003 09:06:52 -0000 1.4
+++ logger.cxx 7 Feb 2003 11:03:52 -0000 1.5
@@ -3,6 +3,7 @@
#include <config.h>
#include <stdio.h>
+#include <iostream.h>
#ifndef _OSL_MUTEX_HXX_
#include <osl/mutex.hxx>
@@ -55,7 +56,7 @@
using namespace com::sun::star::registry;
using namespace ::org::openeas::util;
-#define LOGGERIMPLNAME "org.openeas.util.Logger"
+#define LOGGERIMPLNAME "org.openeas.util.XLogger"
#define SERVICENAME "org.openeas.util.Logger"
class XLoggerImpl: public XLogger, public XServiceInfo
|