There are string versions of the constants that can be used for logging. Unfortunately they can't be used in send_input (since they're not available to the superclass) but I think it would be better to use them in process_input.