#include <arpa/inet.h>
#include "allocator.h"
+#include "globals.h"
#include "types.h"
#include "parser.h"
#include "logger.h"
*/
static status_t destroy(private_parser_t *this)
{
- this->logger->destroy(this->logger);
+ global_logger_manager->destroy_logger(global_logger_manager,this->logger);
allocator_free(this);
return SUCCESS;
return NULL;
}
- this->logger = logger_create("parser", ALL,NULL);
+ global_logger_manager->get_logger(global_logger_manager,PARSER,&(this->logger),"");
+
if (this->logger == NULL)
{
allocator_free(this);