log for main method