- fixed bad bugs in kernel interface
[strongswan.git] / Source / lib / utils / logger_manager.c
index 18ff299..ab21676 100644 (file)
@@ -50,6 +50,7 @@ mapping_t logger_context_t_mappings[] = {
        {PAYLOAD, "PAYLOAD"},
        {DER_DECODER, "DER_DECODER"},
        {DER_ENCODER, "DER_ENCODER"},
+       {ASN1, "ASN1"},
        {MAPPING_END, NULL},
 };
 
@@ -77,6 +78,8 @@ struct {
        { "PAYLD", ERROR|CONTROL|AUDIT|LEVEL0,  TRUE }, /* PAYLOAD */
        { "DERDC", ERROR|CONTROL|AUDIT|LEVEL0,  TRUE }, /* DER_DECODER */
        { "DEREC", ERROR|CONTROL|AUDIT|LEVEL0,  TRUE }, /* DER_ENCODER */
+       { "ASN_1", ERROR|CONTROL|AUDIT|LEVEL0,  TRUE }, /* ASN1 */
+       { "XFRM ", ERROR|CONTROL|AUDIT|LEVEL0,  TRUE }, /* XFRM */
 };
 
 
@@ -196,7 +199,7 @@ void __attribute__ ((constructor)) logger_manager_create()
                private_logger_manager.loggers[i] = logger_create(logger_defaults[i].name,
                                                                                                                  logger_defaults[i].level, 
                                                                                                                  logger_defaults[i].log_thread_ids, 
-                                                                                                                 stdout);
+                                                                                                                 INITIAL_LOG_OUTPUT);
        }
        
 }