blob: a3b26a34540012164b139d3a02c7be6e97bd5b69 [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
Adriana Kobylak70bb6bc2017-02-21 19:51:52 -060010 // Add sdbusplus ObjectManager for the 'root' path of the logging manager.
11 sdbusplus::server::manager::manager objManager(bus, OBJ_LOGGING);
Adriana Kobylakf477fe22017-01-06 11:56:41 -060012
13 phosphor::logging::Manager manager(bus, OBJ_INTERNAL);
14
15 bus.request_name(BUSNAME_LOGGING);
16
Adriana Kobylakf477fe22017-01-06 11:56:41 -060017 while(true)
18 {
19 bus.process_discard();
20 bus.wait();
Adriana Kobylak8f7941e2016-11-14 14:46:23 -060021 }
Adriana Kobylakf477fe22017-01-06 11:56:41 -060022
23 return 0;
Adriana Kobylak8f7941e2016-11-14 14:46:23 -060024}