vhirtham / GDL

Game Development Library
2 stars 0 forks source link

Warning logger #21

Open vhirtham opened 6 years ago

vhirtham commented 6 years ago

Add a warning logger which is used when exceptions don't make sense. This is usually the case for classes which should (but don't need to) be in a certain state during destruction. For example the memory systems should be deinitialized before destruction.

This logger should probably be a singleton and there should be macros like for the exceptions which can deactivate the logger if it is not needed. The warnings should be printed during destruction of the class. Use different types of Warning which can be disabled (Performance, Uninitialized etc.)

Add logging (if class is finished):