blob: 0c7baccc75bca3147b0eb928eeb8192d4003f67b [file] [log] [blame]
#include "com/foo/config.h"
#include "com/foo/bar.h"
int main(int argc, char **argv) {
int result = EXIT_SUCCESS;
try {
auto logger = com::foo::getLogger("MyApp");
LOG4CXX_INFO(logger, "Entering application.");
com::foo::Bar bar;
bar.doIt();
LOG4CXX_INFO(logger, "Exiting application.");
}
catch(std::exception&) {
result = EXIT_FAILURE;
}
return result;
}