Change 16135

ShadauxCat (ShadauxCat)
ShadauxCat committed this change into //guest/ShadauxCat/Sprawl/Mainline under Review 16136
View Review
Download .zip
- Changed the way category handlers are registered a bit so that a category can't get the same handler added to it twice (i.e., from having both a parent and a grandparent with the same handler, which would happen if, for example, "Test" were registered with a handler, then "Test::Test2" were set to inherite handlers from "Test", and then "Test::Test2::Test3" were set to inherit from "Test::Test2")
- Changed levelStr parameter to log function to be a char* so there's one less string to construct
- Moved runtime level checking up higher so that arguments wouldn't be called/constructed if the log level is runtime-disabled
- Added unit tests to verify the above

#review-16136
  • Files 3
  • Comments 0
3 edited 0 added 0 deleted
UnitTests/UnitTests_Logging.cpp#5
Loading...
logging/Logging.cpp#4
Loading...
logging/Logging.hpp#5
Loading...
Tip: Use n and p to cycle through the changes.