File: testProperties.cpp

package info (click to toggle)
log4shib 2.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 2,948 kB
  • sloc: cpp: 4,778; sh: 4,242; ansic: 818; makefile: 190
file content (13 lines) | stat: -rw-r--r-- 308 bytes parent folder | download | duplicates (7)
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) {
    log4shib::Properties properties;
    std::string inFile = (argc > 1) ? argv[1] : "log4shib.properties";  
    std::ifstream in(inFile.c_str());

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