Skip to content

Instantly share code, notes, and snippets.

@akira-okumura
Created December 14, 2014 23:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akira-okumura/ee63b85c4921ee24ef4e to your computer and use it in GitHub Desktop.
Save akira-okumura/ee63b85c4921ee24ef4e to your computer and use it in GitHub Desktop.
#include "Logger.h"
int main()
{
MyProject::Logger logFile("debug.log");
logFile.SetFilterLevel(MyProject::Logger::kDebug);
MyProject::gLogger.Debug("This is a DEBUG output");
MyProject::gLogger.Info("This is a INFO output");
MyProject::gLogger.Warning("This is a WARNING output");
MyProject::gLogger.Error("This is an ERROR output");
MyProject::gLogger.Fatal("This is a FATAL output");
MyProject::gLogger.SetFilterLevel(MyProject::Logger::kError);
MyProject::gLogger.Warning("This is the %dnd WARNING output", 2);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment