Summary of the invention
The present invention provides a kind of journal displaying method, system and computer readable storage mediums, and what is had is convenient for
The characteristics of Time-Series analysis.
A kind of journal displaying method provided according to the present invention, including,
It is shown according to the setting of display period, show log icon and time shaft;The time shaft is laterally or longitudinally set
It sets;Each described log icon represents a log, and the corresponding position of log icon on a timeline corresponds to the time of log
Stamp;
It identifies the log icon that mouse is pointed or chooses, and shows the time letter of corresponding position on the time axis
Breath, and/or show the log information of corresponding log;The selection includes but is not limited to click selection and/or frame choosing.
The method also includes carrying out classification to the log icon and show, the classification includes but is not limited to journal stage
Not, one or more of process name and label;The log rank indicates the significance level rank of log;The tag representation
Specific module in process.
The method also includes judging whether the log icon chosen includes two or more, if it is, according to corresponding day
The timestamp sequencing of will, the log information of show log.
The method also includes the first reference line of identification corresponding position and shows the corresponding time on a timeline;Know
Other second reference line corresponding position on a timeline, and show the corresponding time, and between first reference line when
Between it is poor;First reference line and the second reference line are for choosing log icon section.
The method also includes show log item numbers;The log item number according to setting choose condition summarize and/
Or summarize display respectively.
A kind of journal displaying system provided according to the present invention, including,
Time shaft is laterally or longitudinally arranged;
Log icon, each log icon represent a log, and corresponding position on a timeline corresponds to the time of log
Stamp;
Log icon is directed toward or selection identification module, identifies the log icon that mouse is pointed or selects;
First time information display module, the log icon for showing that mouse is pointed or selecting correspond on the time axis
The temporal information of position;
First log information display module shows that the log icon pointed by mouse or chosen corresponds to the log letter of log
Breath;The selection includes but is not limited to click selection and/or frame choosing.
Classify the system also includes log icon and show setup module, classified according to the log icon of setting, classification is aobvious
Show the log icon;The classification includes but is not limited to one or more of log rank, process name and label;The day
The significance level rank of will rank expression log;Specific module in the tag representation process.
The system also includes,
Log icon multiselect judgment module judges whether the log icon chosen includes two or more;
Second log information display module, if it is determined that the log icon chosen includes two or more, then according to corresponding day
The timestamp sequencing of will, the log information of show log;
The first log information display module and the second log information display module are that the same log information shows mould
Block or different log information display modules.
The system also includes,
First reference line location identification module identifies the first reference line corresponding position on a timeline;
Second reference line location identification module identifies the second reference line corresponding position on a timeline;
Second temporal information display module, identifying the first reference line and the second reference line, corresponding position is corresponding on a timeline
Time, and time difference between the two;First reference line and the second reference line are for indicating log icon section;
The first time information display module and the second temporal information display module are that information shows mould at the same time
Block or different temporal information display modules.
The system also includes log item number display modules;The log item number is converged according to the condition that setting is chosen
Always and/or respectively summarize display.
A kind of computer readable storage medium provided according to the present invention is stored on capable of being loaded and executed by processor
State the computer program of any method.
Compared with prior art, journal displaying method of the invention, is convenient for Time-Series analysis, consequently facilitating analysis is related
The variation of cooperating process and state.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not
For limiting the present invention.
Any feature disclosed in this specification (including abstract and attached drawing) unless specifically stated can be equivalent by other
Or the alternative features with similar purpose are replaced.That is, unless specifically stated, each feature is a series of equivalent or class
Like an example in feature.
A kind of journal displaying method provided according to the present invention, including,
It is shown according to the setting of display period, show log icon and time shaft;The time shaft is laterally or longitudinally set
It sets;Each described log icon represents a log, and the corresponding position of log icon on a timeline corresponds to the time of log
Stamp;
It identifies the log icon that mouse is pointed or chooses, and shows the time letter of corresponding position on the time axis
Breath, and/or show the log information of corresponding log;The selection includes but is not limited to click selection and/or frame choosing.
As the embodiment of the present invention, directly log information is not shown in a manner of text, with log icon table
Show log, each log icon represents a log, according to the logging time section to be shown of setting, shows time shaft figure
Picture, and the log icon of the expression log according to the corresponding display various time points of time shaft, as specific embodiment, when described
Between axis (embodiment as shown in Figure 1, time shaft laterally be arranged) is laterally or longitudinally set, show scale, scale on time shaft
Density show that such as the resolution ratio of display, time shaft image are aobvious according to demand with precision (time scale can be as accurate as millisecond)
Show size, and the size etc. of the period shown.Log icon can be defined freely as a kind of graphical representation, such as Fig. 1 institute
Show, as an implementation, using the graphical representation of rectangular block, each rectangular block indicates a log.As shown in Figure 1,
According to the graphical representation of display, it can intuitively judge the quantity of log and the precedence relationship of generation, be conducive to program and ran
The tracking of journey and state change, to improve the efficiency of exploitation and debugging.
Compared with prior art, according to the time shaft image of display, convenient for selecting the period to be observed, according to the period
Intuitively choose the log to be checked, consequently facilitating realize log Time-Series analysis, consequently facilitating analysis dependent coordination process and
The variation of state.
As a kind of embodiment of the invention, the method also includes, classification is carried out to the log icon and is shown, institute
Stating classification includes but is not limited to one or more of log rank, process name and label;The log rank indicates log
Significance level rank;Specific module in the tag representation process.
Wherein, log rank illustrates the significance level of log information, and significance level by can be divided into from low to high: mistake
Journey, debugging, warning, mistake and serious error etc..The other log of procedure level is generally used for the implementation procedure of instruction program, quantity
Greatly, redundancy is more;The program information that the log output developer of debugging level is concerned about;The log representation program of warning level
It encounters not counting mistake but notably case;Mistake has occurred in the log representation program of error level;Serious error rank
Log representation program grave error has occurred, program has been unable to run.As one embodiment, integer table can be used
Show error level, 0 indicates that significance level is minimum, and number is bigger, and expression significance level is higher.In general, it is respectively corresponded with 0-4
Above-mentioned procedure level is clipped to serious error rank.It as one embodiment, can be by using different colors to log icon
Different log ranks is indicated, for example, rank 0-4 respectively corresponds light grey, light blue, yellow, red, reddish black.
As shown in Figure 1, a kind of embodiment as the present invention program, the classification of display include labeling, there is phase
Log icon with label is shown on a same row, further according to timestamp sequencing and the lateral time shaft pair of these logs
It answers, horizontal spreading shows these log icons, it can also be seen that system under test (SUT) is occurring when problem occurs when tracing problem
The operational process and state change of the front and back of mistake.It is very suitable to the trace debug of the system of multiple modules or the cooperation of multiple programs
And analysis.Since the log of multiple systems under test (SUT) can be recorded simultaneously, the project of multiple subsystem joint debuggings is greatly facilitated
Exploitation and debugging.
As a kind of embodiment of the invention, the method also includes judging whether the log icon chosen includes two
More than a, if it is, according to the timestamp sequencing of corresponding log, the log information of show log.These logs according to
Chronological order is successively shown in text box in a manner of text, meanwhile, facilitate user to check log in a manner of text
With the text in replication log.
As a kind of embodiment of the invention, the method also includes the first reference line of identification corresponds on a timeline
Position and show the corresponding time;It identifies the second reference line corresponding position on a timeline, and shows the corresponding time, and
With the time difference between first reference line;First reference line and the second reference line are for choosing log icon section.
In the embodiment shown in fig. 1, all reference lines are referred to as vernier, and vernier information display area shows the first reference line
On a timeline the correspondence time of corresponding position, the second reference line on a timeline the correspondence time of corresponding position and two ginseng
Examine the time difference between line.
As a kind of embodiment of the invention, the method also includes show log item numbers;The log item number according to
The condition chosen is set and is summarized and/or summarized respectively display.It, can be according to the specified time as specific embodiment
Range counts the quantity of the corresponding log of every kind of log rank in the time range, can also be by specifying progress information, statistics
The quantity of the corresponding log of various log ranks of specified process.
A kind of journal displaying system provided according to the present invention, including,
Time shaft is laterally or longitudinally arranged;
Log icon, each log icon represent a log, and corresponding position on a timeline corresponds to the time of log
Stamp;
Log icon is directed toward or selection identification module, identifies the log icon that mouse is pointed or selects;
First time information display module, the log icon for showing that mouse is pointed or selecting correspond on the time axis
The temporal information of position;
First log information display module shows that the log icon pointed by mouse or chosen corresponds to the log letter of log
Breath;The selection includes but is not limited to click selection and/or frame choosing.
Embodiment as shown in Figure 1, time shaft are laterally arranged, and log icon is indicated using rectangular block.
System under test (SUT) can send Log Collect System for program running log by wired or wireless mode;Log
The log of acquisition is converted to unified journal format and is sent to logger module by acquisition system, for journal displaying system tune
Take display.As one of embodiment, unified journal format includes timestamp, log rank, process name, label and day
Will content.
Diary record system is by the log buffer received into queue, then the asynchronous log by buffer queue is successively write
Enter in database.The instantaneous processing capacity of the system can be improved using caching mechanism.Also there is diary record system screening to read
Take the function of log, the function of statistical log quantity, the function of deleting log, export function, import feature and notice log
The function of update.
Journal function is read in screening realizes the function that log is screened according to the range of the certain specified attributes of log information.
Statistical log quantity function realizes range according to the specified time, counts every kind of log rank in the time range
The quantity of corresponding log.The corresponding log of various log ranks of specified process can also be counted by specifying progress information
Quantity.
It deletes journal function and realizes the function of deleting specified log, idle storage space can be vacateed for database.
It imports the function of importing with export function realization log from text file and database exports to the function of text file
Energy.
It is aobvious according to the log update after more new record that the notice updated function of log realizes notice log display system
Show the purpose of new log.
As one embodiment of the present invention, classifies the system also includes log icon and show setup module, according to
The log icon of setting is classified, and classification shows the log icon;It is described classification include but is not limited to log rank, process name and
One or more of label;The log rank indicates the significance level rank of log;Tool in the tag representation process
Module.
As one embodiment of the present invention, the system also includes,
Log icon multiselect judgment module judges whether the log icon chosen includes two or more;
Second log information display module, if it is determined that the log icon chosen includes two or more, then according to corresponding day
The timestamp sequencing of will, the log information of show log;
The first log information display module and the second log information display module are that the same log information shows mould
Block or different log information display modules.
In embodiment as shown in Figure 1, the first log information display module and the second log information display module are
The same log information display module (information for the log chosen).
As an implementation, the log icon that can also be directed toward to mouse is shown using a display module
(such as being shown in the travelling display box by mouse with mouse position variation) can also use another to the log icon of selection
Display module is shown.
As embodiment in of the invention one, the system also includes,
First reference line location identification module identifies the first reference line corresponding position on a timeline;
Second reference line location identification module identifies the second reference line corresponding position on a timeline;
Second temporal information display module, identifying the first reference line and the second reference line, corresponding position is corresponding on a timeline
Time, and time difference between the two;First reference line and the second reference line are for indicating log icon section;
The first time information display module and the second temporal information display module are that information shows mould at the same time
Block or different temporal information display modules.
In embodiment as shown in Figure 1, the first time information display module and the second temporal information display module are
Information display module (vernier information) at the same time.
As one embodiment of the present invention, the system also includes log item number display modules;The log item number
Summarized and/or summarized respectively display according to the condition that setting is chosen.