Patent ID: 7478282

Claim:
A log acquisition method for acquiring a log during execution of a program which comprises functions that execute predetermined processes, comprising: a step of identifying a designated function of functions in an operating system, which are called upon execution of the program; and a step of rewriting addresses of the loaded functions that execute the predetermined processes, and an address of the designated function in the operating system to an address of a function for log acquisition, and the function for log acquisition, comprising: a step of calling the functions that execute the predetermined processes and the designated function in the operating system, making the functions execute the predetermined processes, and passing a received execution result to the program; a step of recording predetermined information upon calling the functions that execute the predetermined processes and the designated function in the operating system; a step of recording predetermined information upon receiving the execution result; a step of defining one or a plurality of predetermined modules; and a step of determining whether or not a given function is called via the defined module, and in that when the function is called via the defined module, the predetermined information upon calling that function is excluded from a recording target.