Log when running program.