Mileage is the first thing to write down when a warning light comes and goes. A light that stays lit is easy to bring in. A light that switches off on its own after a few miles gets dismissed, and that is where the trouble often starts.
What the light is telling you
A check engine light that stays steady usually means the car has stored a fault and is reporting it. A light that flashes is a different sign. In most owner manuals, a flashing light means a serious problem is happening now, and the advice is to ease off and have the car looked at soon rather than keep driving hard. Write down which one you saw.
A light that comes and goes often means the fault is intermittent. The car may store a code, turn the light off when the fault stops for a while, and keep the code in memory. The light going out does not mean the problem went away.
Log it on the road
Keep a short note in the glovebox or on your phone. Write the mileage, the outside air feel, whether the engine was cold or warm, the speed, and what you were doing: climbing a hill, braking, idling at a light, or carrying a load. Add anything that changed at the same time, such as a new noise, a rough idle, or a drop in fuel economy you noticed on the trip. Ten short entries are worth more to a technician than one long complaint.
What to ask the shop
Ask the shop to read any stored trouble codes and to record the freeze frame data, which is the snapshot of engine conditions at the moment a code was set. Ask whether the codes were cleared before the car arrived. Clearing a code erases the record, so a light that is off when you drop the car off can hide the evidence.
Ask for the printed scan report and keep it with your mileage log. Ask what test the shop will run to confirm the cause before it replaces any part. A code names a symptom area, not always the failed part. Ask what the diagnosis itself will cost before the car goes up on the lift, and get that answer in writing.
What the paper should say
If you hold a service contract, read how it handles the diagnosis line. Plans differ on whether diagnosis is paid on its own or only when a covered repair follows. Some want a repair order that names the code, the test, and the result before any approval. Check whether the plan needs the administrator's approval before work starts, and who to call if the shop cannot reach them. Look at which parts are listed or excluded in your own contract. The exclusionary and listed-parts page on this site explains how those lists usually work. This site does not publish what any single plan covers. The printed contract does.
When the light comes back
A light that returns after a repair is a sign the first fix missed the cause. Put that on the log and bring it back with the earlier paper. For a car past the one hundred thousand mile mark, the page on what changes for coverage at that point lists the questions to bring to a quote. Keep the log in the same folder as the signed contract page, so both are in one place when you call.