diff options
Diffstat (limited to 'test/loggerTest.cpp')
| -rw-r--r-- | test/loggerTest.cpp | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/test/loggerTest.cpp b/test/loggerTest.cpp new file mode 100644 index 0000000..fab2f25 --- /dev/null +++ b/test/loggerTest.cpp @@ -0,0 +1,57 @@ +#include "../include/logger.hpp" + +class Two { + + public: + Two() { + + } + + void WritetoLog() { + Logger::Get().log("THIS IS A NEEEEEWWWW TEST!!!!!"); + Logger::Get().logErr("ERRORRRRRRRR"); + Logger::Get().printLog(); + } + + void TryPrint() { + Logger::Get().printLog(); + } +}; + +class One { + + public: + Two two; + One() { + two = Two(); + } + + void OpenLog() { + Logger::Get().openLog("output.txt"); + two.WritetoLog(); + Logger::Get().closeLog(); + two.TryPrint(); + } +}; + + + + +int main(int argc, char* argv[]) { + + // Logger::Get().openLog("output.txt"); + // Logger::Get().log("Testing Info aksdjflkas lksajfdlasjfaowe aslkdjf alskjf asodfj03945430 0349534 5039485 345"); + // Logger::Get().log("Testing Info Just some stuff"); + // Logger::Get().log("Testing something words words words"); + // Logger::Get().logErr("Testing Error lksdj fa 3459374"); + // Logger::Get().log("Testing blah blah blah blah blah lbal lab lbas labal abala"); + // Logger::Get().log("Testing Info aksdjflkas l11111111111111111111111111111111111111111485 345"); + // Logger::Get().logErr("Testing Error Some other type of error"); + // Logger::Get().logErr("Testing Error Another one"); + // Logger::Get().closeLog(); + // //log.printLog(); + + One one = One(); + one.OpenLog(); + +}
\ No newline at end of file |
