log area function.