Make basic logging a bit more versatile