logkit.hpp
Go to the documentation of this file.
19// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
51 enum MessageLevels {Error = 1, Warning = 2, Low = 4, Medium = 8, High = 16, DebugLow = 32, DebugHigh = 64};
124 LogStream(std::ostream * logstream, const std::vector<int> & levels, bool ignore_general = false);
MessageLevels Symbols for use when sending message level and parsing exact levels. Definition: logkit.hpp:51 static void WriteHeader(const std::string &text, MessageLevels logLevel=Low) static void SetFileLog(const std::string &fileName, const std::vector< int > &levels, bool ignore_general=false) Set a full phase dependent file log. LimitLevels Symbols for use when parsing given level and lower. Definition: logkit.hpp:54 static void SetScreenLog(const std::vector< int > &levels, bool ignore_general=false) Set a full phase dependent screen log. static void SetFileLog(const std::string &fileName, int levels, int phase, bool ignore_general=false) Set single-phase file log, useful for debugging given phase. static void EndBuffering() static void LogMessage(int level, int phase, const std::string &message) Send message in given phase. static void SetFileLog(const std::string &fileName, int levels, bool includeNRLibLogging=true) Set a file that logs independent of phase. static void SetPrefix(const std::string &prefix, int level) static void LogFormatted(int level, std::string format,...) Send message as c-style format string and arguments. static void LogFormatted(int level, int phase, std::string format,...) Send message as c-style format string and arguments. static void StartBuffering() static void LogMessage(int level, const std::string &message) Send message independent of phase. static void SetScreenLog(int levels, bool includeNRLibLogging=true) Set a screen log independent of phase. LogStream(std::ostream *logstream, const std::vector< int > &levels, bool ignore_general=false) ~LogStream() void LogMessage(int level, int phase, const std::string &message) LogStream(std::ostream *logstream, int level) Convention: logstream = NULL means cout. void LogMessage(int level, const std::string &message) Definition: exception.hpp:31 Definition: logkit.hpp:137 |