Skip to content
Snippets Groups Projects
Commit c2023c69 authored by Norihiro Watanabe's avatar Norihiro Watanabe
Browse files

use lower case in LogogSetup member function names

parent 70118cb6
No related branches found
No related tags found
No related merge requests found
...@@ -30,7 +30,7 @@ public: ...@@ -30,7 +30,7 @@ public:
{ {
LOGOG_INITIALIZE(); LOGOG_INITIALIZE();
logog_cout = std::unique_ptr<logog::Cout>(new logog::Cout); 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)); (new BaseLib::LogogSimpleFormatter));
} }
...@@ -42,18 +42,18 @@ public: ...@@ -42,18 +42,18 @@ public:
LOGOG_SHUTDOWN(); LOGOG_SHUTDOWN();
} }
void SetFormatter(std::unique_ptr<logog::Formatter>&& formatter) void setFormatter(std::unique_ptr<logog::Formatter>&& formatter)
{ {
fmt = std::move(formatter); fmt = std::move(formatter);
logog_cout->SetFormatter(*fmt); logog_cout->SetFormatter(*fmt);
} }
void SetLevel(LOGOG_LEVEL_TYPE level) void setLevel(LOGOG_LEVEL_TYPE level)
{ {
logog::SetDefaultLevel(level); logog::SetDefaultLevel(level);
} }
void SetLevel(std::string const & level) void setLevel(std::string const & level)
{ {
std::map<std::string, LOGOG_LEVEL_TYPE> foo = std::map<std::string, LOGOG_LEVEL_TYPE> foo =
{ {
...@@ -71,7 +71,7 @@ public: ...@@ -71,7 +71,7 @@ public:
//LOGOG_LEVEL_TYPE level_type; //LOGOG_LEVEL_TYPE level_type;
if(foo.find(level) != foo.end()) if(foo.find(level) != foo.end())
SetLevel(foo[level]); setLevel(foo[level]);
else else
{ {
ERR("%s is not a valid log level! Aborting.", level.c_str()); ERR("%s is not a valid log level! Aborting.", level.c_str());
......
...@@ -73,7 +73,7 @@ int main(int argc, char *argv[]) ...@@ -73,7 +73,7 @@ int main(int argc, char *argv[])
ApplicationsLib::LogogSetup logog_setup; ApplicationsLib::LogogSetup logog_setup;
logog_setup.SetLevel(log_level_arg.getValue()); logog_setup.setLevel(log_level_arg.getValue());
ApplicationsLib::LinearSolverLibrarySetup linear_solver_library_setup( ApplicationsLib::LinearSolverLibrarySetup linear_solver_library_setup(
argc, argv); argc, argv);
......
...@@ -57,11 +57,11 @@ int main(int argc, char* argv[]) ...@@ -57,11 +57,11 @@ int main(int argc, char* argv[])
ApplicationsLib::LinearSolverLibrarySetup linear_solver_library_setup( ApplicationsLib::LinearSolverLibrarySetup linear_solver_library_setup(
argc, argv); 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> > <TOPIC_LEVEL_FLAG | TOPIC_FILE_NAME_FLAG | TOPIC_LINE_NUMBER_FLAG> >
(new BaseLib::TemplateLogogFormatterSuppressedGCC (new BaseLib::TemplateLogogFormatterSuppressedGCC
<TOPIC_LEVEL_FLAG | TOPIC_FILE_NAME_FLAG | TOPIC_LINE_NUMBER_FLAG>())); <TOPIC_LEVEL_FLAG | TOPIC_FILE_NAME_FLAG | TOPIC_LINE_NUMBER_FLAG>()));
logog_setup.SetLevel(logLevel); logog_setup.setLevel(logLevel);
try try
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment