diff options
author | Tony Theodore <tonyt@logyst.com> | 2012-05-02 09:36:28 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2012-05-02 09:36:28 (GMT) |
commit | fe2aea1a6d1b7ee05e3c18c4305c72f89f3843ec (patch) | |
tree | 29d041f38777fd6561b7bcd33312feebe4f64ec8 /src/log4cxx-test.cpp | |
parent | 1940a74145dbbe86243068d63312667dd0b46111 (diff) | |
download | mxe-fe2aea1a6d1b7ee05e3c18c4305c72f89f3843ec.zip mxe-fe2aea1a6d1b7ee05e3c18c4305c72f89f3843ec.tar.gz mxe-fe2aea1a6d1b7ee05e3c18c4305c72f89f3843ec.tar.bz2 |
packages apr, apr-util, log4cxx: various changes and add log4cxx test program
Diffstat (limited to 'src/log4cxx-test.cpp')
-rw-r--r-- | src/log4cxx-test.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/log4cxx-test.cpp b/src/log4cxx-test.cpp new file mode 100644 index 0000000..460ee33 --- /dev/null +++ b/src/log4cxx-test.cpp @@ -0,0 +1,33 @@ +/* + * This file is part of MXE. + * See index.html for further information. + */ + +#include <cstdlib> +#include "log4cxx/logger.h" +#include "log4cxx/basicconfigurator.h" +#include "log4cxx/helpers/exception.h" + +using namespace log4cxx; +using namespace log4cxx::helpers; + +LoggerPtr logger(Logger::getLogger("MXE")); + +int main(int argc, char **argv) +{ + (void)argc; + (void)argv; + + int result = EXIT_SUCCESS; + try + { + BasicConfigurator::configure(); + LOG4CXX_INFO(logger, "Hello World!"); + } + catch(Exception&) + { + result = EXIT_FAILURE; + } + + return result; +} |