寫日記是一個好習慣。

Keeping a diary is a good habit.

Writing in a diary is a good habit.

Source: Tatoeba

Sentence Composition