diff --git a/Applications/ApplicationsLib/LogogSetup.h b/Applications/ApplicationsLib/LogogSetup.h index b1d6a270a30e27cac104d3c9355500300c653b41..2a67d5c638bd888544dd74097d91301ea4ecb83a 100644 --- a/Applications/ApplicationsLib/LogogSetup.h +++ b/Applications/ApplicationsLib/LogogSetup.h @@ -30,7 +30,7 @@ public: { LOGOG_INITIALIZE(); logog_cout = std::unique_ptr<logog::Cout>(new logog::Cout); - SetFormatter(std::unique_ptr<BaseLib::LogogSimpleFormatter> + setFormatter(std::unique_ptr<BaseLib::LogogSimpleFormatter> (new BaseLib::LogogSimpleFormatter)); } @@ -42,18 +42,18 @@ public: LOGOG_SHUTDOWN(); } - void SetFormatter(std::unique_ptr<logog::Formatter>&& formatter) + void setFormatter(std::unique_ptr<logog::Formatter>&& formatter) { fmt = std::move(formatter); logog_cout->SetFormatter(*fmt); } - void SetLevel(LOGOG_LEVEL_TYPE level) + void setLevel(LOGOG_LEVEL_TYPE level) { logog::SetDefaultLevel(level); } - void SetLevel(std::string const & level) + void setLevel(std::string const & level) { std::map<std::string, LOGOG_LEVEL_TYPE> foo = { @@ -71,7 +71,7 @@ public: //LOGOG_LEVEL_TYPE level_type; if(foo.find(level) != foo.end()) - SetLevel(foo[level]); + setLevel(foo[level]); else { ERR("%s is not a valid log level! Aborting.", level.c_str()); diff --git a/Applications/CLI/ogs.cpp b/Applications/CLI/ogs.cpp index 64e5fa04624accf443692f1537dcae3649a6bf2d..6eed82449b3f3d3567cb0e84db6ed7555a8373b3 100644 --- a/Applications/CLI/ogs.cpp +++ b/Applications/CLI/ogs.cpp @@ -73,7 +73,7 @@ int main(int argc, char *argv[]) ApplicationsLib::LogogSetup logog_setup; - logog_setup.SetLevel(log_level_arg.getValue()); + logog_setup.setLevel(log_level_arg.getValue()); ApplicationsLib::LinearSolverLibrarySetup linear_solver_library_setup( argc, argv); diff --git a/Tests/testrunner.cpp b/Tests/testrunner.cpp index 37c985941bcbb997dbaa21253b2f2f0ba11375f7..0e9991d41d76b5cb4c74b88a19376a190f82374c 100644 --- a/Tests/testrunner.cpp +++ b/Tests/testrunner.cpp @@ -57,11 +57,11 @@ int main(int argc, char* argv[]) ApplicationsLib::LinearSolverLibrarySetup linear_solver_library_setup( argc, argv); - logog_setup.SetFormatter(std::unique_ptr<BaseLib::TemplateLogogFormatterSuppressedGCC + logog_setup.setFormatter(std::unique_ptr<BaseLib::TemplateLogogFormatterSuppressedGCC <TOPIC_LEVEL_FLAG | TOPIC_FILE_NAME_FLAG | TOPIC_LINE_NUMBER_FLAG> > (new BaseLib::TemplateLogogFormatterSuppressedGCC <TOPIC_LEVEL_FLAG | TOPIC_FILE_NAME_FLAG | TOPIC_LINE_NUMBER_FLAG>())); - logog_setup.SetLevel(logLevel); + logog_setup.setLevel(logLevel); try {