Sets up an alternate log printing routine, if you don't want the log to go to stdout.
this |
a Logger |
printer |
the callback for printing logging output |
destroy |
a DestroyNotify to free |
printer_data |
data to pass to the callback |