karolherbst / Gamekeeper-Framework

Library for hooking up game stores and merging them into one single library
GNU Lesser General Public License v2.1
2 stars 0 forks source link

small logger rework #62

Closed karolherbst closed 10 years ago

karolherbst commented 10 years ago

This pull request adds a isEnabled method to LoggerStreams, so that building up big strings can be avoided. It is only usefull for expensive stuff, because operator<< is noop if the log is disabled.

The seconds changes involes the string conversions: This functionality were moved into a global scops (utils::String::toString), so that it can be used from everywhere. Also it gives us the possibility to optimize the speed of conversions more easily.

karolherbst commented 10 years ago

I think I should try out the libraries tested here: http://zverovich.net/2013/09/07/integer-to-string-conversion-in-cplusplus.html

It may be, that we need different stuff for different conversions.