Local and remote log handling.
