changing TAG for Log in C functions