Add pylogfilename and pyloglevel functions to allow separating python logging. Unify recollinit calls

This commit is contained in:
Jean-Francois Dockes
2019-03-10 14:52:46 +01:00
parent 3b55d03b39
commit 20910d3911
9 changed files with 33 additions and 27 deletions
+1 -1
View File
@@ -23,7 +23,7 @@
using namespace std;
Logger::Logger(const std::string& fn)
: m_tocerr(false), m_loglevel(LLDEB), m_fn(fn)
: m_fn(fn)
{
reopen(fn);
}
+2 -2
View File
@@ -81,8 +81,8 @@ public:
#endif
private:
bool m_tocerr;
int m_loglevel;
bool m_tocerr{false};
int m_loglevel{LLERR};
std::string m_fn;
std::ofstream m_stream;
#if LOGGER_THREADSAFE