Simplified log code.