#include "timer.h"
#include "version.h"
-// Creates a new log category and makes it the default
-XBT_LOG_NEW_DEFAULT_CATEGORY(simu, "Simulation messages");
+// Creates log categories
+XBT_LOG_NEW_CATEGORY(simu, "Simulation messages");
+XBT_LOG_NEW_SUBCATEGORY(main, simu, "Messages from global infrastructure");
+XBT_LOG_NEW_SUBCATEGORY(comm, simu, "Messages from asynchronous pipes");
+XBT_LOG_NEW_SUBCATEGORY(proc, simu, "Messages from base process class");
+XBT_LOG_NEW_SUBCATEGORY(loba, simu, "Messages from load-balancer");
+
+XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(main);
// Failure exit status
enum {
EXIT_FAILURE_CLEAN = 0x08, // error at cleanup
};
+#include "loba_least_loaded.h"
int simulation_main(int argc, char* argv[])
{
- process proc(argc, argv);
+ // process proc(argc, argv);
+ loba_least_loaded proc(argc, argv);
return proc.run();
}