Made log conform to applyLayout