Method and device for generating journal file in domestic environment

A log file and log technology, which is applied in the field of log file generation in the domestic environment, can solve problems such as log data inconsistency, and achieve the effect of achieving consistency

Active Publication Date: 2014-03-19
山东中创软件商用中间件股份有限公司
View PDF6 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, this application provides a method and device for generating log files in a domestic environ

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 and device for generating journal file in domestic environment
  • Method and device for generating journal file in domestic environment
  • Method and device for generating journal file in domestic environment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

[0045] see figure 1 , which shows a flow chart of an embodiment of a method for generating log files in a domestic environment provided by the present application. This embodiment may include:

[0046] Step 101: Create a first thread and a second thread when a log file generation instruction sent by a user is received.

[0047] When a user accesses a computer device, a log file is generated, and the log file is used to record the operation events of the device system. When the use...

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 method and a device for generating a journal file in a domestic environment. The method comprises steps as follows: when a journal file generating instruction sent by a user is received, a first thread and a second thread are established, the first thread is triggered to establish a current journal file, and a first current time duration and a second current time duration are recorded respectively at the starting point of the time when the first thread is triggered to establish the current journal file; when the second current time duration is an integral multiple of a second time threshold value and reaches or exceeds a first time threshold value, the first thread is triggered to establish a new current journal file; and when the first current time duration reaches the second time threshold value, the second thread is triggered to write current journal data into a current journal file, so that before the first thread establishes a new journal file, the current journal data have been written into the current journal file, and consistency of the journal file and the journal data is realized.

Description

technical field [0001] This application relates to the field of computer application technology, in particular to a method and device for generating log files in a domestic environment. Background technique [0002] When a user accesses a computer device, a corresponding log file will be generated, and the log file contains a corresponding access record, and the user can know the recent access to the device by viewing the log file. For example, accessing the application server will generate an HTTP service log file, and the user can obtain the latest access record to the application program in the application server by viewing the service log file. Generating the log file requires two threads to perform two-step work. First, the log rolling thread creates a new log file, and then the log update thread writes log data into the newly created log file. [0003] The log file generation method is based on the time policy, that is, the log rolling thread creates a log file at reg...

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): G06F11/34
Inventor 厉颖吴石磊翟鲁超车帅何忠胜王毅
Owner 山东中创软件商用中间件股份有限公司
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