Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Log running method and system, client and server

An operating method and server technology, which is applied in the direction of instruments, special data processing applications, electrical digital data processing, etc., can solve the problem of asynchronously writing logs in disorder, and achieve the effect of flexible log information classification

Inactive Publication Date: 2017-05-10
SHENZHEN KINGDOM TECH
View PDF8 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, the embodiment of the present invention provides a log operation method and system, client and server, to solve the problem that the existing log module will be messy when writing the log asynchronously

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Log running method and system, client and server
  • Log running method and system, client and server
  • Log running method and system, client and server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0050] figure 1 A flow chart of implementing the log running method provided by Embodiment 1 of the present invention is shown. Such as figure 1 As shown, the log operation method includes the following steps performed by the server:

[0051] S101: Receive log information sent by the client, where the log information includes a log ID and a type ID; the type ID includes at least one of transaction time, system ID, business ID, institution ID, and teller ID.

[0052] Wherein, the server receives the log information sent by the client, and the client includes but not limited to a computer client and a mobile client. Log information refers to the corresponding files and / or data generated when the user conducts transactions on the client terminal, including log ID and type ID. The log ID is unique and is used to uniquely identify the log, and the type ID is used to classify the log.

[0053] When the server sends log information to the server, it can use communication transmis...

Embodiment 2

[0070] image 3 A flow chart of implementing the log running method provided by Embodiment 2 of the present invention is shown. Such as image 3 As shown, the log operation method includes the following steps performed by the client:

[0071] S201: Generate log information, where the log information includes a log ID and a type ID; the type ID includes at least one of transaction time, system ID, service ID, institution ID, and teller ID.

[0072] Wherein, the log information refers to the corresponding files and / or data generated when the user conducts transactions on the client terminal, including log ID and type ID. The log ID is unique and is used to uniquely identify the log, and the type ID is used to classify the log. When the user conducts transactions on the client terminal, log information is generated, and the log information includes log ID and type ID.

[0073] S202: Send the log information to the server.

[0074] The client sends the log information generat...

Embodiment 3

[0090] Corresponding to the log running method in the first embodiment above, image 3 A structural block diagram of the server provided by Embodiment 3 of the present invention is shown, and the details are as follows:

[0091] refer to Figure 5 , the server includes:

[0092] The first receiving module 31 is configured to receive log information sent by the client, where the log information includes a log ID and a type ID; the type ID includes at least one of transaction time, system ID, business ID, organization ID, and teller ID.

[0093] The caching module 32 is configured to store the log information in configuration files corresponding to the type IDs, and cache the log information in the message queue.

[0094] The processing module 33 is configured to use multiple service threads to classify the log information stored in each configuration file according to the message queue, and form at least one classified file corresponding to the type ID.

[0095] The first se...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention is applicable to the technical field of banking log running and provides a log running method and system, a client and a server. The method comprises the steps that log information sent from the client is received, wherein the log information comprises a log ID and type IDs, and the type IDs comprise at least one of trading time, a system ID, a business ID, an institution ID and a teller ID; the log information is stored in configuration documents corresponding to the type IDs and cached in a message queue; based on the message queue, and a plurality of service threads are adopted to classify the log information stored in each configuration document, so that at least one sort file corresponding to the type IDs is formed; a log file is formed based on the at least one sort file and is sent to the client. By means of the method, the chaotic problem generated when a log is asynchronously written to a log module can be solved.

Description

technical field [0001] The invention belongs to the technical field of bank log operation, and in particular relates to a log operation method and system, a client and a server. Background technique [0002] Jinzheng's existing middleware KCBP has an independent log module, and the log also supports attributes such as asynchronous writing and asynchronous writing according to different log levels. However, in the case of multi-thread or multi-process operation, the order of the logs written asynchronously by the KCBP log module will appear disorganized, and the information in the front node of the log cannot mark which organization or which teller the log belongs to. It becomes very difficult to read logs and track bugs during production maintenance and normal development and debugging. [0003] Therefore, it is necessary to propose a new technical solution to solve the above technical problems. Contents of the invention [0004] In view of this, the embodiments of the p...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F17/30
CPCG06F16/355
Inventor 郭威
Owner SHENZHEN KINGDOM TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products