blob: c5e426b5addd2568fa2a5dab918fd9c79e394fd1 [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(),
Adriana Kobylakc0f05322017-01-12 13:27:49 -060013 BUSNAME_LOGGING,
14 OBJ_INTERNAL);
Adriana Kobylak8f7941e2016-11-14 14:46:23 -060015 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}