MCPcopy Create free account
hub / github.com/PurpleI2P/i2pd / SetLogLevel

Function SetLogLevel

daemon/HTTPServer.cpp:166–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164 }
165
166 static void SetLogLevel (const std::string& level)
167 {
168 if (level == "none" || level == "critical" || level == "error" || level == "warn" || level == "info" || level == "debug")
169 i2p::log::Logger().SetLogLevel(level);
170 else {
171 LogPrint(eLogError, "HTTPServer: Unknown loglevel set attempted");
172 return;
173 }
174 i2p::log::Logger().Reopen ();
175 }
176
177 static void ShowPageHead (std::stringstream& s)
178 {

Callers 1

HandleCommandMethod · 0.85

Calls 3

LogPrintFunction · 0.85
SetLogLevelMethod · 0.80
ReopenMethod · 0.80

Tested by

no test coverage detected