use loggername instead of function name