Use unique_ptr<> to handle FileAppender's buffer.