log generator working