12 string infoFileName =
"utest_info";
13 string warningFileName =
"utest_warn";
15 std::shared_ptr<Logger> fileLog =
18 {
"infoFileName", infoFileName},
19 {
"warningFileName", warningFileName },
20 {
"displayLocation",
"1" }
26 EXPECT_TRUE(boost::filesystem::remove(boost::filesystem::path(infoFileName)));
27 EXPECT_TRUE(boost::filesystem::remove(boost::filesystem::path(warningFileName)));
30 TEST(Loggers, FileLoggerInfoToConsole)
32 std::shared_ptr<Logger> fileLog =
35 {
"displayLocation",
"1" }
41 TEST(Loggers, FileLoggerWarningToConsole)
43 std::shared_ptr<Logger> fileLog =
46 {
"displayLocation",
"1" }
52 TEST(Loggers, FileLoggerInfoToFile)
54 string infoFileName =
"utest_info";
56 std::shared_ptr<Logger> fileLog =
59 {
"infoFileName", infoFileName},
60 {
"displayLocation",
"1" }
68 EXPECT_TRUE(boost::filesystem::remove(boost::filesystem::path(infoFileName)));
71 TEST(Loggers, FileLoggerWarningToFile)
73 string warningFileName =
"utest_warn";
75 std::shared_ptr<Logger> fileLog =
78 {
"warningFileName", warningFileName },
79 {
"displayLocation",
"1" }
87 EXPECT_TRUE(boost::filesystem::remove(boost::filesystem::path(warningFileName)));