write logs into $HOME