log: reorganize SCLogOPIfaceCtx to make it more efficient

pull/1578/head
Victor Julien 11 years ago
parent c2f4031a8c
commit d6fc6e874f

@ -652,6 +652,10 @@ static inline SCLogOPIfaceCtx *SCLogInitConsoleOPIface(const char *log_format,
}
iface_ctx->log_level = tmp_log_level;
if (isatty(fileno(stdout))) {
}
return iface_ctx;
}

@ -120,12 +120,12 @@ typedef struct SCLogOPIfaceCtx_ {
/* the facility code if the interface is SC_LOG_IFACE_SYSLOG */
int facility;
/* override for the global_log_format(currently not used) */
const char *log_format;
/* override for the global_log_level */
SCLogLevel log_level;
/* override for the global_log_format(currently not used) */
const char *log_format;
struct SCLogOPIfaceCtx_ *next;
} SCLogOPIfaceCtx;

Loading…
Cancel
Save