1. An information processing apparatus which executes a first module, a second module, and a third module for mediating a call from the first module to a function in the second module and obtaining a log of processing in the second module, the third module comprising: a detector which detects a call from the first module to an initialization function associated with initialization processing in the second module; a determination unit which obtains an initialization parameter and determines an operation condition in which the initialization processing should be executed on the basis of the obtained initialization parameter, when the call to the initialization function is detected; an execution unit which executes the initialization processing in the determined operation condition; and a notifying unit which notifies the first module of an execution result of the initialization processing.