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

Log printing method and device and log printing system

A log printing and log technology, applied in the direction of digital output to printing units, instruments, calculations, etc., can solve the problems of high performance pressure, inconvenient monitoring system, and inconvenient business code development for program developers.

Active Publication Date: 2017-06-30
ADVANCED NEW TECH CO LTD
View PDF5 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The final printed log of a business request is scattered in multiple files. It is very inconvenient to check the log by grep multiple files to view the complete link.
In addition, because multiple business logs are printed in the same file, the monitoring of configuration business puts a lot of pressure on the performance of the monitoring system.
[0004] Therefore, the existing technology cannot well achieve the effect of printing all the logs on the link of a business request to a file. Even if the above effect is achieved through a certain method, it is necessary to add additional codes in the business system to give the program The development of the developer's business code causes serious inconvenience

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0091] The first embodiment of the present application provides a log printing method, which is applied in a business system, and the business system includes multiple layers. Specifically, a log framework for printing logs can be constructed in the business system through this method, The log framework can pre-configure corresponding log printing tools for business requests, so that the log information of each layer of the multi-layer business system can be printed into a log file. Correspondingly, for a business request, the business request chain The log of the road will be written in a log file, so you can save time and energy when troubleshooting problems or performing business monitoring through the log file. On the other hand, while ensuring that the log of the above-mentioned one business request link is printed to a file, this method does not need to add code to the business system, so that program developers can focus on the development of business code without additi...

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 discloses a log printing method and device and a log printing system. The log printing method is used in a business system, and the business system comprises multiple layers. The method comprises the steps of receiving a business request; determining a corresponding layer and a corresponding log printing component according to the business request; adopting the determined log printing component to print log information generated in the layer corresponding to the business request into a log file. According to the method, a log framework which is simple, flexible, and does not invade a business code is built, the business system does not need to add codes, when requests from different business come, the log framework built through the method prints parameters of each layer processing method and returning values to log files corresponding to different business; meanwhile, log print in business codes can also be directly printed into the log files corresponding to the business, and thus all the logs in a business request link can be printed in the same file at one time.

Description

technical field [0001] The present application relates to the technical field of server-end business printing, and in particular to a log printing method. The present application also relates to a log printing device and system. Background technique [0002] In server-side business systems, different levels are often divided for code isolation and abstraction. A simple back-end business system can be divided into service layer, domain layer, and data layer. Such a front-end request will be processed through three layers of the back-end business system. The traditional method will be manually implemented in the code of each implementation class in each layer. Designate a logger to print logs, which is not flexible enough to print logs, the code is repeated, and the log string of a business request link cannot be written in a file, which leads to time-consuming and labor-intensive troubleshooting and business monitoring, wasting a lot of resources. [0003] Or, the business ...

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): G06F3/12
CPCG06F3/1237G06F3/1296
Inventor 封磊
Owner ADVANCED NEW TECH CO LTD
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