Skip to content
Snippets Groups Projects
Commit 696ce0b8 authored by armatusmiles's avatar armatusmiles
Browse files

[+] possibility print log info without log_tag

parent 1c866622
No related branches found
No related tags found
No related merge requests found
......@@ -194,8 +194,10 @@ void _vlog_it(const char * log_tag,enum log_level ll, const char * format,va_lis
if (s_log_file ) fprintf(s_log_file,"[!!!] ");
printf("\x1b[1;5;31m[!!!] ");
}
if (s_log_file ) fprintf(s_log_file,log_tag_fmt_str,log_tag);
printf(log_tag_fmt_str,log_tag);
if(log_tag != NULL) {
if (s_log_file ) fprintf(s_log_file,log_tag_fmt_str,log_tag);
printf(log_tag_fmt_str,log_tag);
}
if (s_log_file ) vfprintf(s_log_file,format,ap);
vprintf(format,ap2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment