added the logging system to log the use visit log