GCP Assignment 1
Logging.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 #include <SDL.h>
5 #include <fstream>
6 #include <time.h>
7 #include "../Maths/Mat4.h"
8 
12 namespace Core
13 {
14 
18  namespace Logging
19  {
20 
25  void logI(std::string message);
26 
31  void logE(std::string message);
32 
37  void logMat4(Maths::Mat4 testMat);
38 
44  void logI(std::string message, bool printToLog);
45 
51  void logE(std::string message, bool printToLog);
52 
58  void logMat4(Maths::Mat4 testMat, bool printToLog);
59 
64  void printToLogFile(std::string message);
65 
70  std::string getCurrentDateAndTime();
71 
77  std::string boolToString(bool booleanIn);
78 
79  }//End of Logging namespace
80 
81 }//End of Core namespace
std::string getCurrentDateAndTime()
Gets the current date and time in the form of a string.
Definition: Logging.cpp:85
void logI(std::string message)
Logs the information message, this prints the message to the log file by default. ...
Definition: Logging.cpp:11
void logE(std::string message)
Logs the error message, this prints the message to the log file by default.
Definition: Logging.cpp:16
Contains the Mat4 structure with functions and overloaded operators. This is row major.
Definition: Mat4.h:15
The namespace for all core code.
Definition: Logging.cpp:5
void logMat4(Maths::Mat4 testMat)
Logs the mat4, this prints the mat4 to the log file by default.
Definition: Logging.cpp:21
void printToLogFile(std::string message)
Prints the message out into the log file.
Definition: Logging.cpp:64
std::string boolToString(bool booleanIn)
Converts a boolean to a string.
Definition: Logging.cpp:97