logging method should be at the end of method, then when you're reading log file, you're sure that whole method was executed