Created
December 14, 2014 23:49
-
-
Save akira-okumura/ee63b85c4921ee24ef4e to your computer and use it in GitHub Desktop.
This file contains 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
#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