The person appointed as Public Defender, before entering on the duties of his office, shall take and subscribe an oath of office in writing before one of the judges competent to appoint, which oath shall be filed in the office of the County Clerk.
55 ILCS 5/3-4005