The key thing you need to achieve is isolation between your mains circuit and the micro.
Psi has been showing you proper, packaged devices for doing this, but possibly you may be open to home brew solutions as well, especially if this is a one off application.
Since you need to measure AC current in a line circuit, a second part of your solution must involve rectifying and smoothing out the AC to get an average DC value for measurement.
Being creative, you could conceivably construct your own optically isolating sensor for this using a small flashlight bulb, a CdS light sensor, and a black cardboard tube. If you place, say, a 1 ohm 10 W resistor in series with the neutral line of your mains circuit it will develop about 1 V across it with each amp flowing. Now you could place a small 6 V flashlight bulb in parallel with this resistor and it will light up with an intensity correlating with the current.
You put the bulb in one end of your black tube, the CdS sensor at the other end, and a decent air gap in between. Now you just need a low voltage circuit with an adjustable threshold that triggers at 4 amps. Your low voltage circuit should be powered from the micro and completely separate from the mains side. Since your bulb/resistor combo only needs a few volts across it to light up you can set it up and adjust the sensitivity off line using an adjustable low voltage power supply and ammeter.
Yes indeed, this seems very crude and Heath Robinson (or Rube Goldberg), but as a one-off thing put together with easily available parts I imagine it would work quite effectively.
(You could also perhaps use back to back LEDs instead of a flashlight bulb and get a sharper transition between on/off, but that would be something to experiment with.)