Skip to content

Instantly share code, notes, and snippets.

@odeblic
Created July 29, 2017 00:38
Show Gist options
  • Save odeblic/0961faa546a007334d6ad499f246eaf1 to your computer and use it in GitHub Desktop.
Save odeblic/0961faa546a007334d6ad499f246eaf1 to your computer and use it in GitHub Desktop.
fast logger
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