blob: 10b6e767bfca54719524c5fc086db3ed7e5ba55a [file] [log] [blame]
Adriana Kobylakf477fe22017-01-06 11:56:41 -06001#include <sdbusplus/bus.hpp>
2#include <sdbusplus/server/manager.hpp>
Adriana Kobylak8f7941e2016-11-14 14:46:23 -06003#include "config.h"
4#include "log_manager.hpp"
Adriana Kobylak8f7941e2016-11-14 14:46:23 -06005
6int main(int argc, char *argv[])
7{
Adriana Kobylakf477fe22017-01-06 11:56:41 -06008 auto bus = sdbusplus::bus::new_default();
9
10 // Add sdbusplus ObjectManager.
11 sdbusplus::server::manager::manager objManager(bus, OBJ_INTERNAL);
12
13 phosphor::logging::Manager manager(bus, OBJ_INTERNAL);
14
15 bus.request_name(BUSNAME_LOGGING);
16
17 // TODO Create error log dbus object on demand, when the Commit interface
18 // creates an error log it'd call this entry interface to create an object.
19
20 while(true)
21 {
22 bus.process_discard();
23 bus.wait();
Adriana Kobylak8f7941e2016-11-14 14:46:23 -060024 }
Adriana Kobylakf477fe22017-01-06 11:56:41 -060025
26 return 0;
Adriana Kobylak8f7941e2016-11-14 14:46:23 -060027}