added doc and file writer to logs