Resistivity logging measures the subsurface electrical resistivity, which is the ability to impede the flow of electric current. This helps to differentiate between formations filled with salty waters (good conductors of electricity) and those filled with hydrocarbons (poor conductors of electricity).