Reuse 'logging' capabilities from sample handling to schema/mapping handling

use to show errors and messages

(from redmine: issue id 541, created on 2018-01-22tgradl)