|
UTILLib 2.0
Common C++ library with utilities.
|
Standard log interfaces.
#include <cstdint>#include <string>#include <experimental/source_location>

Go to the source code of this file.
Namespaces | |
| namespace | util |
| Main namespace for the util library. | |
| namespace | util::log |
| The log namespace is used for log related classes and functions. | |
Typedefs | |
| using | util::log::Loc = std::experimental::source_location |
Enumerations | |
| enum class | util::log::LogSeverity : uint8_t { util::log::kTrace = 0 , util::log::kDebug , util::log::kInfo , util::log::kNotice , util::log::kWarning , util::log::kError , util::log::kCritical , util::log::kAlert , util::log::kEmergency } |
| < Defines the log severity level More... | |
Functions | |
| void | util::log::LogDebug (const Loc &loc, const char *fmt,...) |
| Creates a debug message message. | |
| void | util::log::LogInfo (const Loc &loc, const char *fmt,...) |
| Creates an information message. | |
| void | util::log::LogError (const Loc &loc, const char *fmt,...) |
| Creates an error message. | |
| void | util::log::LogString (const Loc &loc, LogSeverity severity, const std::string &message) |
| Creates a generic message. | |
| std::string | util::log::FindNotepad () |
| Search and returns the path to the Notepad application.. Search primary for the Notepad++ application and second for the Notepad application. | |
| bool | util::log::BackupFiles (const std::string &filename, bool remove_file=true) |
| Backup up a file with the 9 last changes. | |