cups syslog printer

I wanted to print to syslog, instead of paper, so i created the syslog backend for cups.

You have to place this file in /usr/lib/cups/backend and make sure is has the execute bit on.

#!/bin/bash

logger $*
env | logger
cat $6 | logger

If you have named this file 'syslog' then configure your printer with a device URL starting with syslog: