Date: Monday, January 22, 2007 @ 15:12:02
Author: marc
Path: /cvsroot/carob/carob/test
Modified: dummymain.cpp (1.2 -> 1.3)
Added some logging
---------------+
dummymain.cpp | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
Index: carob/test/dummymain.cpp
diff -u carob/test/dummymain.cpp:1.2 carob/test/dummymain.cpp:1.3
--- carob/test/dummymain.cpp:1.2 Mon Jan 22 13:38:59 2007
+++ carob/test/dummymain.cpp Mon Jan 22 15:12:02 2007
@@ -1,6 +1,8 @@
#include "Connection.hpp"
+#include "Common.hpp" // logging
+
#ifdef CAROB_LOG4CXX_NAME
#include <log4cxx/logger.h>
#include <log4cxx/basicconfigurator.h>
@@ -11,16 +13,20 @@
int main()
{
+ using namespace CarobNS;
+
#ifdef CAROB_LOG4CXX_NAME
// Set up a simple configuration that logs on the console.
log4cxx::BasicConfigurator::configure();
#endif
+ setLogLevel(LOG_LEVEL_INFO);
+
// ensure we pull out some symbols
- std::vector<CarobNS::ControllerInfo> ctrls;
- ctrls.push_back(CarobNS::ControllerInfo(L"192.168.0.39", 25322));
+ std::vector<ControllerInfo> ctrls;
+ ctrls.push_back(ControllerInfo(L"localhost", 25322));
- CarobNS::ConnectionParameters connectionPrms(ctrls,
+ ConnectionParameters connectionPrms(ctrls,
L"myDB",
L"user",
L"");
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits