Use prefix search tree to find existing loggers.
Use less C++11 features.