1 #include <sdbusplus/bus.hpp> 2 #include <sdbusplus/server/manager.hpp> 3 #include "config.h" 4 #include "log_manager.hpp" 5 6 int main(int argc, char *argv[]) 7 { 8 auto bus = sdbusplus::bus::new_default(); 9 10 // Add sdbusplus ObjectManager for the 'root' path of the logging manager. 11 sdbusplus::server::manager::manager objManager(bus, OBJ_LOGGING); 12 13 phosphor::logging::Manager manager(bus, OBJ_INTERNAL); 14 15 bus.request_name(BUSNAME_LOGGING); 16 17 while(true) 18 { 19 bus.process_discard(); 20 bus.wait(); 21 } 22 23 return 0; 24 } 25