logger: implement simple rotating file logger and add a pluralize function