2019-04-12 12:58:45 +00:00
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Copyright 上海赜睿信息科技有限公司(Zilliz) - All Rights Reserved
|
|
|
|
// Unauthorized copying of this file, via any medium is strictly prohibited.
|
|
|
|
// Proprietary and confidential.
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
#include <gtest/gtest.h>
|
2019-04-14 11:46:25 +00:00
|
|
|
#include "easylogging++.h"
|
2019-04-12 12:58:45 +00:00
|
|
|
|
2019-04-14 11:46:25 +00:00
|
|
|
class LogTest: public testing::Test {
|
|
|
|
protected:
|
|
|
|
void SetUp() override {
|
2019-06-14 09:29:29 +00:00
|
|
|
el::Configurations conf("../../../conf/log_config.conf");
|
2019-04-14 11:46:25 +00:00
|
|
|
el::Loggers::reconfigureAllLoggers(conf);
|
|
|
|
}
|
|
|
|
};
|
2019-04-12 12:58:45 +00:00
|
|
|
|
2019-04-14 11:46:25 +00:00
|
|
|
TEST_F(LogTest, TEST) {
|
|
|
|
EXPECT_FALSE(el::Loggers::hasFlag(el::LoggingFlag::NewLineForContainer));
|
|
|
|
EXPECT_FALSE(el::Loggers::hasFlag(el::LoggingFlag::LogDetailedCrashReason));
|
2019-04-12 12:58:45 +00:00
|
|
|
}
|