blob: 21c13aef617c12f40d820b874c42a94e33d19bac [file] [log] [blame]
Adriana Kobylak8f7941e2016-11-14 14:46:23 -06001#include "config.h"
2#include "log_manager.hpp"
3#include <sdbusplus/bus.hpp>
4#include <cstdlib>
5#include <iostream>
6#include <exception>
7
8int 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}