xref: /openbmc/phosphor-logging/log_manager_main.cpp (revision d310378f4fcd7a7bcdfea81c0e7c93351b6f992f)
1 #include "config.h"
2 #include "log_manager.hpp"
3 #include <sdbusplus/bus.hpp>
4 #include <cstdlib>
5 #include <iostream>
6 #include <exception>
7 
8 int main(int argc, char *argv[])
9 {
10     try {
11         auto manager = phosphor::logging::Manager(
12                 sdbusplus::bus::new_system(),
13                 BUSNAME_LOGGING,
14                 OBJ_INTERNAL);
15         manager.run();
16         exit(EXIT_SUCCESS);
17     }
18     catch (const std::exception &e) {
19         std::cerr << e.what() << std::endl;
20     }
21     exit(EXIT_FAILURE);
22 }
23