File: testProperties.cpp

package info (click to toggle)
log4cpp 0.3.5-rc3-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,000 kB
  • ctags: 1,111
  • sloc: sh: 8,628; cpp: 4,743; ansic: 819; makefile: 321
file content (13 lines) | stat: -rw-r--r-- 306 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "Properties.hh"
#include <iostream>
#include <fstream>

int main(int argc, char** argv) {
    log4cpp::Properties properties;
    std::string inFile = (argc > 1) ? argv[1] : "log4cpp.properties";  
    std::ifstream in(inFile.c_str());

    properties.load(in);
    properties.save(std::cout);
}