She has a habit of keeping a diary every day.

Literal

She [topic-は] every-day diary [object-を] write habit [subject-が] exists.

日記をつける ('to keep a diary') uses the verb つける in its 'attach/apply' sense. 習慣がある marks it as habitual. 毎日 establishes the daily frequency.