logic doc