blob: 10b6e767bfca54719524c5fc086db3ed7e5ba55a [file] [log] [blame]
#include <sdbusplus/bus.hpp>
#include <sdbusplus/server/manager.hpp>
#include "config.h"
#include "log_manager.hpp"
int main(int argc, char *argv[])
{
auto bus = sdbusplus::bus::new_default();
// Add sdbusplus ObjectManager.
sdbusplus::server::manager::manager objManager(bus, OBJ_INTERNAL);
phosphor::logging::Manager manager(bus, OBJ_INTERNAL);
bus.request_name(BUSNAME_LOGGING);
// TODO Create error log dbus object on demand, when the Commit interface
// creates an error log it'd call this entry interface to create an object.
while(true)
{
bus.process_discard();
bus.wait();
}
return 0;
}