A feature to generate logs

Oh, and I fixed one stupid bug in preflets page.