Some helper code for logging (via SLF4J/LOGBACK) and parameter checking.