Created
July 29, 2017 00:38
-
-
Save odeblic/0961faa546a007334d6ad499f246eaf1 to your computer and use it in GitHub Desktop.
fast logger
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class FastLogger | |
{ | |
void registerMessage(int msgId, std::string& ) | |
{ | |
} | |
void logMessage(enum logType, int msgId) | |
{ | |
} | |
template<typename T> | |
void logMessage(enum logType, int msgId, T arg) | |
{ | |
} | |
void push() | |
{ | |
} | |
void render() | |
{ | |
} | |
}; | |
class FastLogger | |
{ | |
private: | |
public: | |
enum class Level | |
{ | |
TRACE, | |
DEBUG, | |
INFO, | |
WARNING, | |
ERROR, | |
FATAL, | |
}; | |
template <typename T> | |
class Item | |
{ | |
T value; | |
const char format[32]; | |
}; | |
void registerMessage(enum id, const std::string& text) | |
{ | |
} | |
void registerMessageAndParameter(enum id, const std::string& text, double parameter) | |
{ | |
} | |
void log(enum Level, enum id) | |
{ | |
} | |
}; | |
// log builder | |
// log writer | |
// log viewer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment