logging function for profiling