The embodiment of the invention discloses a log generation method, a device, a
computer device and a storage medium. The method comprises the following steps: an interface invocation request is intercepted by an interceptor, and the interface invocation request comprises an interface identifier; Whether the corresponding
software interface identified by the interface is an
annotation interface isjudged by an interceptor, and the
annotation interface is a
software interface with a preset
annotation added in advance, wherein the preset annotation comprises a
database identification and a log table identification; If the
software interface corresponding to the interface identifier is an annotation interface, the input parameters of the software interface are obtained through the interceptor,and the input parameters are written into the log table corresponding to the log table identifier, and the log table is stored in the
database corresponding to the
database identifier; the software interface runs, the running results of the software interface is obtained through the interceptor, and the running results is writen into the log table corresponding to the log table identifier to generate the log. By implementing the method of the embodiment of the invention, the generation mode of the log can be simplified, and the unified management of the log can be facilitated.