A method performed by a User Equipment, UE, for transmitting and receiving a signal to and from a network in a wireless communication system, the method comprising: logging, when the UE is in a radio resource control, RRC, idle state, information about failure of a random access procedure being performed by the UE during a first RRC connection establishment procedure if the first RRC connection establishment procedure with the network has failed; said method being characterized by: transmitting to the network, when the UE has transitioned into a RRC connected state, a message indicating that the UE logs the information about failure of the random access procedure during the first RRC connection establishment procedure, wherein the UE transitions from the RRC idle state to the RRC connected state when a second RRC connection establishment procedure with the network is successful; receiving a message requesting the logged information from the network; and transmitting the logged information to the network, wherein the information includes information about a place where the random access procedure has failed and a number of random access preamble transmissions attempted during the first RRC connection establishment procedure, wherein the information includes information about random access associated configuration information used in the random access procedure, and wherein the information includes signal measurement information of a cell in which the random access procedure has failed and neighboring cells. logging, when the UE is in a radio resource control, RRC, idle state, information about failure of a random access procedure being performed by the UE during a first RRC connection establishment procedure if the first RRC connection establishment procedure with the network has failed; said method being characterized by: transmitting to the network, when the UE has transitioned into a RRC connected state, a message indicating that the UE logs the information about failure of the random access procedure during the first RRC connection establishment procedure, wherein the UE transitions from the RRC idle state to the RRC connected state when a second RRC connection establishment procedure with the network is successful; receiving a message requesting the logged information from the network; and transmitting the logged information to the network, transmitting to the network, when the UE has transitioned into a RRC connected state, a message indicating that the UE logs the information about failure of the random access procedure during the first RRC connection establishment procedure, wherein the UE transitions from the RRC idle state to the RRC connected state when a second RRC connection establishment procedure with the network is successful; receiving a message requesting the logged information from the network; and transmitting the logged information to the network, wherein the information includes information about a place where the random access procedure has failed and a number of random access preamble transmissions attempted during the first RRC connection establishment procedure, wherein the information includes information about random access associated configuration information used in the random access procedure, and wherein the information includes signal measurement information of a cell in which the random access procedure has failed and neighboring cells.