kill added
[gp-arc-client-c.git] / ext / arcclientc.cpp
1 /*
2  *  arcclientc.cpp
3  *  arcclientc
4  *
5  *  Created by Tamas Jung on 4/7/10.
6  *  Copyright 2010 Interface Kft. All rights reserved.
7  *
8  */
9
10 #include <iostream>
11 #include "arcclientc.h"
12 #include "logger.h"
13 #include "arc_libs.h"
14 #include "common_utils.h"
15
16
17 bool log_initialized = false;
18 char* initialize(){
19         
20         
21                 
22         if (! log_initialized) {
23                 log_initialized = true;
24                 setlocale(LC_ALL, "");//TBD: do we need this?
25                 static Arc::LogStream  logcerr(std::cerr);
26                 
27                 logcerr.setFormat(Arc::ShortFormat);
28                 Arc::Logger::getRootLogger().addDestination(logcerr);
29                 Arc::Logger::getRootLogger().setThreshold(Arc::DEBUG);
30                 
31         }       
32         return new_str(ARCCLIENTC_VERSION);
33 }
34
35
36