Lashon haRa in a Diary

I am writing a diary which will be seen by others. May it contain lashon hara against a relative of mine?

No, the fact that one is writing a personal history does not entitle you under ordinary circumstances to include lashon hara
against a relative.