Some logging code.