Reduces the the filename of logs

Using cmake and GCC, logs would contain the full file path when logging making logs lines unnecessarily long.  This is solved by just removing anything before "/Source/Core/" (where / is whatever your OS uses to separated directory).
This commit is contained in:
aldelaro5
2016-10-04 03:36:36 -04:00
parent 7b29b3c571
commit 6ee799ba7c
2 changed files with 16 additions and 1 deletions

View File

@ -87,6 +87,7 @@ private:
LogContainer* m_Log[LogTypes::NUMBER_OF_LOGS];
static LogManager* m_logManager; // Singleton. Ugh.
std::array<LogListener*, LogListener::NUMBER_OF_LISTENERS> m_listeners;
size_t m_path_cutoff_point = 0;
LogManager();
~LogManager();