Log collection method and device and log service system

A collection method and collection device technology, which are applied in the network field and can solve problems such as reference conflicts of third-party components

Inactive Publication Date: 2016-01-27
ASIAINFO TECH NANJING
View PDF10 Cites 23 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The main purpose of the present invention is to provide a log collection method, device and log service system, which sol

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 collection method and device and log service system
  • Log collection method and device and log service system
  • Log collection method and device and log service system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0028] First of all, in order to facilitate the understanding of the technical solutions described in the present invention, some important terms in the present invention are explained in detail:

[0029] Host (Host): As a management layer, it is used to complete the management and allocation of hardware resources; present a virtual hardware platform for the Java virtual machine; realize the scheduling and isolation of virtual machines. Wherein, the Host may b...

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 present invention provides a log collection method and device and a log service system, relating to the technical field of networks. The problem of introduction conflict caused by the introduction of a third-party component in the existing log collection process is solved. The method provided by the embodiment of the invention comprises a step of loading the class file of a java application, a step of judging whether the class file is in the monitoring range of log collection, a step of obtaining all class methods of the class file if the class file is in the monitoring range of log collection, and determining whether all class methods have a class method with the need of log collection, a step of implanting a log collection code in the class method with the need of log collection to form a new class file if the all class methods have a class method with the need of log collection, and a step of loading the new class file to carry out log collection.

Description

technical field [0001] The invention relates to the field of network technology, in particular to a log collection method, device and log service system. Background technique [0002] In the application system, the log is an indispensable and important part. The error information of all Java applications should be found in the log files. At present, most Java applications use the log framework to generate various kinds of log files. [0003] However, the existing log frameworks are included in third-party components (such as mina or netty) in the way of jar integration, which leads to the mandatory introduction of third-party components in the running process of Java applications, and then configure the corresponding Parameters, call the Application Programming Interface (Application Programming Interface, API) function provided by the third-party component, and generate the log file by looking for the log framework in the third-party component. Since both the application 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): G06F9/445G06F11/34
Inventor 官进锋陈凤杨云剑
Owner ASIAINFO TECH NANJING
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products