#include #include #include #include #include #include #include "logging.h" using namespace org::hebe::mps::naming; int main(int argc, char *argv[]) { try { MPS::InetTransport::initialise("", 0); ref ns = MPS::getNamingService(); ref logServer = Logging::LogServer::_attach(ns->resolve("Logserver")); if (logServer->logString("Startup successful") == false) { // Couldn't write log message... return 2; } // Continue doing whatever we were doing... return 0; } catch (MPS::MPSException e) { printf("Exception: %s\n", e.getMessage().c_str()); return 1; } }