In the same vein, pipe anything to `logger` to send it to the local syslogd (and if configured, to remote destinations).
For example, this uses datamash (https://www.gnu.org/software/datamash/) to sum column 2 of a CSV ("-t,"), then log the output:
datamash -t, sum 2 < stuff.csv | logger