Adding log to Document module