minor changes to log_function.h (need to fix main ast visitor)