Multiwavelength observations revealing the evolution of the outburst of the black hole XTE J1118+480