void log_info(const char* fmt, ...)
{
    va_list args;
    va_start(args, fmt);
    printf("\033[32m");
    printf("[+] ");
    vprintf(fmt, args);
    printf("\033[0m");
    va_end(args);
}

// Print out error logs with a red color and a cross.
void log_error(const char* fmt, ...)
{
    va_list args;
    va_start(args, fmt);
    printf("\033[31m");
    printf("[!] ");
    vprintf(fmt, args);
    printf("\033[0m");
    va_end(args);
}
Refactor this and make it optimal for a utility logger. Your entire response should be in English, and in all capital letters.
user