Danny Gratzer committed ac42a42 Draft

Templated logger_creator with a default to logger

  • Participants
  • Parent commits be66817

Comments (0)

Files changed (1)


    * @Class logger_creator
    * @brief This class should be used to specify the settings of a logger or loggers and then to generate them.
+  template<typename T = logger>
   class logger_creator{
        * Generates a new logger with the current list of handlers, the current
        * ignore level and the suppplied name
-      logger spawn(const std::string& name){
-        return logger(handler_list, ignore_level, name, is_timestamped); 
+      T spawn(const std::string& name){
+        return T(handler_list, ignore_level, name, is_timestamped);