Adriana Kobylak | 8f7941e | 2016-11-14 14:46:23 -0600 | [diff] [blame^] | 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, | ||||
14 | OBJ); | ||||
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 | } |