This does not mean that every mark associated with moisture indicates an infection. Temporary redness or indentation can occur simply because the skin has been exposed to heat, sweat, and friction.
Underwear Marks and Skin Health — What Clothing Patterns May Reveal