log.c simplification, fix usefull functionality which never worked, move all log code from openair2 to common