Add support for loggering.