Make logging and printing configurable.
Refactoring for useless SYSLOG_TAG assignments.