logger last line is thread safe