Unlock instant, AI-driven research and patent intelligence for your innovation.

Method, device and enterprise system for obtaining process output logs

A process output, enterprise system technology, applied in the field of computer software, can solve the problem of not being able to obtain process output logs in real time

Active Publication Date: 2014-03-26
KINGDEE SOFTWARE(CHINA) CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The purpose of the embodiments of the present invention is to provide a convenient and fast method for obtaining process output logs, aiming at solving the problem that process output logs cannot be obtained in real time

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
  • Method, device and enterprise system for obtaining process output logs
  • Method, device and enterprise system for obtaining process output logs
  • Method, device and enterprise system for obtaining process output logs

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0037] figure 1 The specific flow of the method for obtaining process output logs provided by the first embodiment of the present invention is shown.

[0038] In step S101, when a second process is created in the first process, a log input stream of the second process is obtained.

[0039] In the embodiment of the present invention, the second process is a child process created by the first process. The acquired log input stream of the second process includes a general log input stream and an error log input stream.

[0040] In step S102, a monitoring thread is created by the first process, and the monitoring thread periodically checks whether the log input stream of the second process generates a new log stream.

[0041] In the embodiment of the present invention, the first process respectively creates two monitoring threads, namely the first monitoring thread and the second monitoring thread. The first monitoring thread is used to periodically check whether the general lo...

Embodiment 2

[0047] figure 2 The specific flow of the method for obtaining process output logs provided by the second embodiment of the present invention is shown.

[0048] In step S201, when a second process is created in the first process, a log input stream of the second process is obtained.

[0049] In step S202, a monitoring thread is created by the first process, and the monitoring thread periodically checks whether the log input stream of the second process generates a new log stream.

[0050] In step S203, when the monitoring thread detects that the log input stream of the second process generates a new log stream, it outputs the new log stream to the cache.

[0051] In the embodiment of the present invention, when a new log stream is generated, the new log stream is first output to the cache.

[0052] In step S204, the log stream in the cache is output to the process log file of the second process.

[0053] In the embodiment of the present invention, the new log stream is outp...

Embodiment 3

[0055] image 3 The structure of the apparatus for obtaining process output logs provided by the embodiment of the present invention is shown, and for the convenience of description, only the parts related to the embodiment of the present invention are shown. The device may be a software unit, a hardware unit, or a combination of software and hardware built into the enterprise system, or integrated into the enterprise system or an application system of the enterprise system as an independent pendant. in:

[0056] The input stream acquiring module 1 is configured to create a second process in the first process, and acquire a log input stream of the second process.

[0057] In the embodiment of the present invention, the second process is a child process created by the first process. The acquired log input stream of the second process includes a general log input stream and an error log input stream.

[0058] Periodically check module 2, create a monitoring thread through the f...

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, belonging to the computer software field, provides a method, a device and an enterprise system for obtaining process output logs. The method comprises the following steps of: when creating a second progress in a first progress, obtaining the log input stream of the second progress; creating a monitoring thread through the first progress, and regularly examining whether a new log stream is produced by the log input stream of the second progress through the monitoring thread; and when the monitoring thread finds out that the new log stream is produced by the log input stream of the second progress, outputting the new log stream to the progress log document of the second progress. The method provided in the invention obtains the output log of the second progress by creating the monitoring thread through the first progress and regularly examining the log input stream of the second progress, and ensures that log information can be obtained in real time by regularly examining the log input stream of the second progress; and the log stream is used so that the output log of the progress can be obtained conveniently and at low consumption.

Description

technical field [0001] The invention belongs to the field of computer software, and in particular relates to a method, a device and an enterprise system for obtaining process output logs. Background technique [0002] A process is a running activity of a program with independent functions on a certain data set. It can apply for and own system resources. It is a dynamic concept and an active entity. It's not just the code of the program, but also the current activity, represented by the value of the program counter and the contents of the processing registers. In large-scale commercial applications, services are generally provided by multiple different processes. It is necessary to query the output logs of these processes or directly read the process output logs to monitor the services of large-scale commercial applications, but the reading of process output logs or process The query of the output log will lead to slow output log, consumes a lot of resources, and cannot gua...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/38G06F9/46
Inventor 刘习红
Owner KINGDEE SOFTWARE(CHINA) CO LTD