add log statistics function to admin