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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 