for log code