- added new logging context for configuration manager

This commit is contained in:
Jan Hutter
2005-11-22 11:55:57 +00:00
parent 323ff573d2
commit 06d2a398e2
2 changed files with 5 additions and 2 deletions
+2
View File
@@ -41,6 +41,7 @@ mapping_t logger_context_t_mappings[] = {
{SOCKET, "SOCKET"}, {SOCKET, "SOCKET"},
{TESTER, "TESTER"}, {TESTER, "TESTER"},
{DAEMON, "DAEMON"}, {DAEMON, "DAEMON"},
{CONFIGURATION_MANAGER, "CONFIG"},
}; };
/** /**
@@ -394,6 +395,7 @@ static status_t disable_logger_level (private_logger_manager_t *this, logger_con
*/ */
static status_t destroy(private_logger_manager_t *this) static status_t destroy(private_logger_manager_t *this)
{ {
while (this->loggers->get_count(this->loggers) > 0) while (this->loggers->get_count(this->loggers) > 0)
{ {
loggers_entry_t *current_entry; loggers_entry_t *current_entry;
+2 -1
View File
@@ -46,6 +46,7 @@ enum logger_context_e{
SOCKET, SOCKET,
TESTER, TESTER,
DAEMON, DAEMON,
CONFIGURATION_MANAGER,
}; };
/** /**
@@ -67,7 +68,7 @@ struct logger_manager_s {
* @param context logger_context to use the logger for. * @param context logger_context to use the logger for.
* @param[out] logger pointer to a a place where the new logger is stored * @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 * @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 * @return
* - logger_t on SUCCESS * - logger_t on SUCCESS
* - NULL otherwise * - NULL otherwise