{SOCKET, "SOCKET"},
{TESTER, "TESTER"},
{DAEMON, "DAEMON"},
+ {CONFIGURATION_MANAGER, "CONFIG"},
};
/**
*/
static status_t destroy(private_logger_manager_t *this)
{
+
while (this->loggers->get_count(this->loggers) > 0)
{
loggers_entry_t *current_entry;
current_entry->logger->destroy(current_entry->logger);
/* entry can be destroyed */
- allocator_free(current_entry);
+ allocator_free(current_entry);
}
while (this->logger_levels->get_count(this->logger_levels) > 0)
SOCKET,
TESTER,
DAEMON,
+ CONFIGURATION_MANAGER,
};
/**
* @param context logger_context to use the logger for.
* @param[out] logger pointer to a a place where the new logger is stored
* @param name name for the new logger. Context name is already included
- * and has not to be specified.
+ * and has not to be specified (so NULL is allowed).
* @return
* - logger_t on SUCCESS
* - NULL otherwise