feat(middleware): add file logs