CN103368756B - For monitoring the management system of the daily record of operation for embedded system - Google Patents

For monitoring the management system of the daily record of operation for embedded system Download PDF

Info

Publication number
CN103368756B
CN103368756B CN201210090027.5A CN201210090027A CN103368756B CN 103368756 B CN103368756 B CN 103368756B CN 201210090027 A CN201210090027 A CN 201210090027A CN 103368756 B CN103368756 B CN 103368756B
Authority
CN
China
Prior art keywords
log information
daily record
log
information
embedded system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210090027.5A
Other languages
Chinese (zh)
Other versions
CN103368756A (en
Inventor
林哲明
李捷
郑子凤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian Star Net eVideo Information Systems Co Ltd
Original Assignee
Fujian Star Net eVideo Information Systems Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujian Star Net eVideo Information Systems Co Ltd filed Critical Fujian Star Net eVideo Information Systems Co Ltd
Priority to CN201210090027.5A priority Critical patent/CN103368756B/en
Publication of CN103368756A publication Critical patent/CN103368756A/en
Application granted granted Critical
Publication of CN103368756B publication Critical patent/CN103368756B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The present invention provides the management system of a kind of daily record for monitoring operation for embedded system, carries destination including journalizing bag module, profile module and daily record;System application generates daily record, is transmitted daily record by journalizing bag module;Journalizing bag determines the destination of daily record information conveyance, the output format of log information, the generation process etc. of daily record according to profile module;Daily record carries destination and processes the log information received;Profile module is for the priority level of configuration log information, the conveying destination of log information, the output format of log information, the output lowest level of log information, the time cycle of log information renewal and the generation position of log event.The present invention can arrange the different stage of daily record, carries out the Classification Management of different log information, log information carries out the transmission of consolidation form, can arrange when which kind of rank log information belong to and must export at once, thus reach to export the purpose of real-time logs information.

Description

For monitoring the management system of the daily record of operation for embedded system
[technical field]
The present invention relates to field of embedded technology, particularly relate to the management system of a kind of daily record for monitoring operation for embedded system.
[background technology]
At present, in the application program of embedded system, log recording is added generally speaking based on three purposes: 1, monitor the situation of change of variable in code, periodically recorded in file and carry out statistic analysis for other application;2, track when code runs is followed the tracks of, as the foundation of later audit;3, the effect of debugger in IDE is taken on, to file or the Debugging message of control station print code.
Add log recording in the application, traditional way is exactly to embed the print statement of many in code, these print statements can export in control station or file, reasonable way is exactly to construct a journalizing class to encapsulate this generic operation rather than the main body allowing a series of print statement be full of code.But daily record to be checked, major part is all to go to check log information by the way of order line.These traditional methods have the disadvantage in that shortcoming 1: embed print statement in code, cause code structure complicated.Shortcoming 2: cannot be managed collectively log information, just lost after the log information output of order line output, and not to log information Classification Management.Shortcoming 3: real-time logs information and non real-time log information cannot be managed;Real-time logs information refers to log information and to export at once, thus feeds back to user, and non real-time log information then can preserve hereof, for checking in the future.Shortcoming 4: need to be familiar with the related command of embedded system, just can check log information.
Prior art provides one " log information management method and system ", see Publication No.: CN102111285A, publication date is: the Chinese patent of 2011.06.29, wherein, this system includes that log information management unit, log information extraction formatting unit, data unify centralized unit and web log file information provider unit;Described log information management unit, for configuring the journal format of same server end, intercepts log information and preserves, and sets up daily record at server data center and reclaims server;The various daily records that daily record is reclaimed server collection next by described log information extraction formatting unit are extracted, and change and load;Described data unify centralized unit for will concentrate through extraction, the log information of conversion process and create Data Mart;Described web log file information provider unit, for receive check web log file information request time, it is provided that corresponding web log file information.This invention is by unified by the journal format in same server, it is thus possible to the log information that reduces of maximum extracts the ratio extracting and changing in formatting procedure, centralized and unified storage will be carried out, so that the analysis operating efficiency of daily record is improved by server by the data of above-mentioned process.Web log file information is managed by the log information management system of this invention, be not based on embedded system, and this invention cannot each log information of flexible configuration significance level, real-time logs information and the output of non real-time log information cannot be managed.
[summary of the invention]
The technical problem to be solved in the present invention, is to provide the management system of a kind of daily record for monitoring operation for embedded system, can arrange the different stage of daily record, carry out the Classification Management of different log informations, log information carries out the transmission of consolidation form.
The present invention is achieved in that the management system of a kind of daily record for monitoring operation for embedded system, carries destination including journalizing bag module, profile module and daily record;Described daily record carries destination and includes: file, GUI (graphic user interface) assembly, control station and the event recorder of windowsNT;
Described journalizing bag module for according to described profile module, controls certain destination that the log information of described operation for embedded system is transported in described daily record conveying destination;Control the output format of each log information, and the generation process of daily record can be controlled according to the position that occurs of the log event of profile module configuration;
Described profile module is for the priority level of configuration log information, the conveying destination of log information, the output format of log information, the output lowest level of log information, the time cycle of log information renewal and the generation position of log event;The priority level of described log information includes from high to low: ERROR, WARN, INFO and DEBUG, and these priority levels indicate the significance level of each log information;The output lowest level of described log information is to arrange when which kind of priority level log information belong to export at once, thus reaches to export real-time logs information;Described log information update time cycle can be set to monthly, week, sky, time or divide time cycle Update log information;The position that occurs of described log event includes arranging the full name of the class belonging to the generation time of log information, the thread of log information generation, log information;
Described file is for storage log information, and user is by checking that daily record checked by file;
Described GUI component is used for directly displaying log information, and user checks daily record by the Application Program Interface of embedded system;
Described control station is for directly displaying log information at embedded system Command Line Interface;
The event recorder of described windowsNT is for log information in the event recorder of windows system, and user can check daily record by the log viewer of windows system;
Present invention have the advantage that the present invention, when system application generates daily record, is transmitted daily record by journalizing bag module;Journalizing bag determines the destination of daily record information conveyance, the output format of log information, the generation process etc. of daily record according to profile module;Daily record carries destination and processes the log information received;Wherein profile module is for the priority level of configuration log information, the conveying destination of log information, the output format of log information, the output lowest level of log information, the time cycle of log information renewal and the generation position of log event.The present invention can arrange the different stage of daily record, can carry out the Classification Management of different log information, log information carries out the transmission of consolidation form, can arrange when which kind of rank log information belong to and must export at once, thus reach to export the purpose of real-time logs information.
[accompanying drawing explanation]
Fig. 1 is the block schematic illustration of present system.
[detailed description of the invention]
As it is shown in figure 1, the management system of a kind of daily record for monitoring operation for embedded system of the present invention, carry destination 3 including journalizing bag module 1, profile module 2 and daily record;Described daily record conveying destination includes 3: file 31, GUI component 32, the event recorder 34 of control station 33 and windowsNT;
Described journalizing bag module 1 for according to described profile module 2, controls certain destination that the log information of described operation for embedded system is transported in described daily record conveying destination 3;Control the output format of each log information, and the generation process of daily record can be controlled according to the position that occurs of the log event of profile module 2 configuration;The log information of described operation for embedded system is the log information of each application program generation of embedded system.
Described profile module 2 is for the priority level of configuration log information, the conveying destination of log information, the output format of log information, the output lowest level of log information, the time cycle of log information renewal and the generation position of log event;The priority level of described log information includes from high to low: ERROR (mistake), WARN (warning), INFO (information) and DEBUG (debugging), these priority levels indicate the significance level of each log information;The output lowest level of described log information is to arrange when which kind of priority level log information belong to export at once, thus reaches to export real-time logs information;Described log information update time cycle can be set to monthly, week, sky, time or divide time cycle Update log information;The position that occurs of described log event includes arranging the full name of the class belonging to the generation time of log information, the thread of log information generation, log information;The output format of log information then controls the display content of log information (such as: 2011/12/1115:08:11DEBUGsomethinghappenned!Wherein 2011/12/1115:08:11 represents that application program sends the time of daily record, and DEBUG represents that the grade of this information is Debugging message somethinghappenned!It it is concrete log information.);
Described file 31 is for storage log information, and user is by checking that daily record checked by file;
Described GUI component 32 is used for directly displaying log information, and user checks daily record by the Application Program Interface of embedded system;
Described control station 33 is for directly displaying log information at embedded system Command Line Interface;
The event recorder 34 of described windowsNT is for log information in the event recorder of windows system, and user can check daily record by the log viewer of windows system;
The configuration file that form is XML format of wherein said profile module 2 or the configuration file of properties form, journalizing bag module 1 can support configuration file and the configuration file of properties form of XML format.
Here it is worth noting that:
The present invention can arrange daily record output format by LogPackage.appender.A1.layout.ConversionPattern in profile module.
It is as follows that parameter is set:
%p: output journal information priorities, i.e. DEBUG, INFO, WARN, ERROR;
%d: the date or time of output journal time point, default form is ISO8601, it is also possible to specified format behind, and such as: %d{yyyMMMddHH:mm:ss, SSS}, output is similar: on October 18th, 2002 22:10:28,921
%r: output self-application program starts to export the millisecond number that this log information expends
%c: the classification belonging to output journal information, is exactly generally the full name of place class
%t: output produces the thread name of this log event
The generation position of %l: output journal event, is equivalent to the combination of %C.%M (%F:%L), including category name, the thread of generation, and the line number in code.
Illustrate such as: Testlog4.main (TestLog4.java:10)
%x: the NDC (nested diagnostic environment) that is associated with current thread of output, especially use as javaservlets in the application of many clients multithreading.
%%: export " % " character
The file name at place when %F: output journal information produces
%L: the line number in output code
%m: the information specified in output code, the daily record specifying information of generation
%n: exporting new line symbol, windows platform is " r n ", Unix platform is " n " line feed of output journal information.Between % and pattern character, the alignment thereof of its minimum widith, Breadth Maximum and text wherein can be controlled plus modifier.As:
1) %20c: specifying the title of output category, minimum width is 20, if the title of category is less than 20, Right Aligns in the case of acquiescence.
2) %-20c: specifying the title of output category, minimum width is 20, if the title of category is less than 20, "-" number appointment left-justify.
3) %.30c: specifying the title of output category, maximum width is 30, if the title of category is more than 30, will be cut out by the character that the left side has more, but there will not be space less than 30.
4) %20.30c: if the title of category is less than 20 with regard to blank fill, and Right Aligns, if its title is longer than 30 characters, the character just found a good sale in out from left side friendship cuts out.
Configuration log information of the present invention output destination Appender, its grammer is:
LogPackage.appender.appenderName=
fully.qualified.name.of.appender.class
LogPackage.appender.appenderName.option1=value1
LogPackage.appender.appenderName.option=valueN
Wherein, the appender that LogPackage provides has following several:
Org.apache.LogPackage.ConsoleAppender (control station),
Org.apache.LogPackage.FileAppender (file),
Org.apache.LogPackage.DailyRollingFileAppender (every day produces a journal file),
Org.apache.LogPackage.RollingFileAppender (file size produces a new file when of arriving specified size),
Log information (is sent to the place being arbitrarily designated) by org.apache.LogPackage.WriterAppender with stream format
(1), ConsoleAppender option
Threshold=WARN: specify the output lowest level of log information.
ImmediateFlush=true: default value is true, it is meant that all of information all can be exported immediately.
Under Target=System.err: default situations it is: System.out, it is intended that output control station
(2), FileAppender option
Threshold=WARN: specify the output lowest level of log information.
ImmediateFlush=true: default value is true, it is meant that all of information all can be exported immediately.
File=mylog.txt: appointment information exports mylog.txt file.
Append=false: default value is true, will information increase in specified file, and false refers to information is covered the file content specified.
(3), DailyRollingFileAppender option
Threshold=WARN: specify the output lowest level of log information.
ImmediateFlush=true: default value is true, it is meant that all of information all can be exported immediately.
File=mylog.txt: appointment information exports mylog.txt file.
Append=false: default value is true, will information increase in specified file, and false refers to information is covered the file content specified.
DatePattern='. ' yyyy-ww: roll weekly a file, produce the most weekly a new file.Can certainly specify monthly, week, sky, time and point.I.e. corresponding form is as follows:
1) '. ' yyyy-MM: monthly
2) '. ' yyyy-ww: weekly
3) '. ' yyyy-MM-dd: every day
4) '. ' yyyy-MM-dd-a: twice daily
5) '. ' yyyy-MM-dd-HH: per hour
6) '. ' yyyy-MM-dd-HH-mm: per minute
(4), RollingFileAppender option
Threshold=WARN: specify the output lowest level of log information.
ImmediateFlush=true: default value is true, it is meant that all of information all can be exported immediately.
File=mylog.txt: appointment information exports mylog.txt file.
Append=false: default value is true, will information increase in specified file, and false refers to information is covered the file content specified.
MaxFileSize=100KB: suffix can be KB, MB or GB, when journal file arrives this size, it will automatically roll, original content will move on to mylog.log.1 file.
MaxBackupIndex=2: specify the maximum number of the scroll file that can produce.
The present invention is configured neatly by a profile module 2, without the code of amendment application;The different stage of daily record can be set, the Classification Management of different log informations can be carried out, log information can be carried out the transmission of consolidation form, can arrange when which kind of rank log information belong to and must export at once, thus reach to export in real time the purpose of important log information, and check that log information is more convenient by the system of the present invention.
The foregoing is only presently preferred embodiments of the present invention, all impartial changes done according to scope of the present invention patent and modification, all should belong to the covering scope of the present invention.

Claims (3)

1. the management system being used for monitoring the daily record of operation for embedded system, it is characterised in that: include that journalizing bag module, profile module and daily record carry destination;Described daily record carries destination and includes: the event recorder of file, GUI component, control station and windowsNT;
Described journalizing bag module for according to described profile module, controls certain destination that the log information of described operation for embedded system is transported in described daily record conveying destination;Control the output format of each log information, and the generation process of daily record can be controlled according to the position that occurs of the log event of profile module configuration;
Described profile module is for the priority level of configuration log information, the conveying destination of log information, the output format of log information, the output lowest level of log information, the time cycle of log information renewal and the generation position of log event;The priority level of described log information includes from high to low: ERROR, WARN, INFO and DEBUG, and these priority levels indicate the significance level of each log information;The output lowest level of described log information is to arrange when which kind of priority level log information belong to export at once, thus reaches to export real-time logs information;Described log information update time cycle can be set to monthly, week, sky, time or divide time cycle Update log information;The position that occurs of described log event includes arranging the full name of the class belonging to the generation time of log information, the thread of log information generation, log information;
Described file is for storage log information, and user is by checking that daily record checked by file;
Described GUI component is used for directly displaying log information, and user checks daily record by the Application Program Interface of embedded system;
Described control station directly displays log information for the Command Line Interface in embedded system;
The event recorder of described windowsNT is for log information in the event recorder of windows system, and user checks daily record by the log viewer of windows system.
The management system of the daily record for monitoring operation for embedded system the most according to claim 1, it is characterised in that: the log information of described operation for embedded system is the log information of each application program generation of embedded system.
The management system of the daily record for monitoring operation for embedded system the most according to claim 1, it is characterised in that: the form of described profile module is configuration file or the configuration file of properties form of XML format.
CN201210090027.5A 2012-03-29 2012-03-29 For monitoring the management system of the daily record of operation for embedded system Active CN103368756B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210090027.5A CN103368756B (en) 2012-03-29 2012-03-29 For monitoring the management system of the daily record of operation for embedded system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210090027.5A CN103368756B (en) 2012-03-29 2012-03-29 For monitoring the management system of the daily record of operation for embedded system

Publications (2)

Publication Number Publication Date
CN103368756A CN103368756A (en) 2013-10-23
CN103368756B true CN103368756B (en) 2016-08-03

Family

ID=49369351

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210090027.5A Active CN103368756B (en) 2012-03-29 2012-03-29 For monitoring the management system of the daily record of operation for embedded system

Country Status (1)

Country Link
CN (1) CN103368756B (en)

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103942134B (en) * 2014-04-04 2017-04-26 福建星网视易信息系统有限公司 Method and system for viewing embedded device log
CN104092586A (en) * 2014-07-21 2014-10-08 上海斐讯数据通信技术有限公司 Method and system for collecting running information of embedded system
CN105700996A (en) * 2014-11-27 2016-06-22 迈普通信技术股份有限公司 Log output method and apparatus
CN105183621A (en) * 2015-08-17 2015-12-23 浪潮(北京)电子信息产业有限公司 Multithreading based log management method and system
CN105260293B (en) * 2015-11-06 2019-04-16 Tcl集团股份有限公司 Output method, device and the terminal device of log information
CN105260315B (en) * 2015-11-13 2018-04-06 上海斐讯数据通信技术有限公司 A kind of method of the debugging log in embedded system process
CN106899643A (en) * 2015-12-21 2017-06-27 阿里巴巴集团控股有限公司 A kind of user journal storage method and equipment
CN106294132B (en) * 2016-07-29 2019-02-01 深圳创维-Rgb电子有限公司 A kind of method and device managing log
CN106547677B (en) * 2016-11-01 2019-03-19 广东浪潮大数据研究有限公司 A kind of log processing method and device
CN107249025A (en) * 2017-06-05 2017-10-13 威创集团股份有限公司 A kind of built-in network log collecting method and system
CN109725587B (en) * 2017-10-27 2021-08-06 上海宝信软件股份有限公司 Operation record recording method based on human-computer interface
CN110730086B (en) * 2018-07-16 2022-11-25 视联动力信息技术股份有限公司 Method and device for outputting log information
CN110858130B (en) * 2018-08-22 2021-05-25 网宿科技股份有限公司 Log printing method and system and server
CN110780857B (en) * 2019-10-23 2024-01-30 杭州涂鸦信息技术有限公司 Unified log component
CN110750253A (en) * 2019-10-28 2020-02-04 深圳前海环融联易信息科技服务有限公司 Log standardization method and device, computer equipment and storage medium
CN111209128B (en) * 2019-12-20 2022-04-12 翱捷科技股份有限公司 Embedded system and log management method thereof
CN110968493A (en) * 2019-12-24 2020-04-07 上海英方软件股份有限公司 Method and system for analyzing and deducing running state of program based on running log
CN111736978B (en) * 2020-07-29 2020-11-27 长沙微康信息科技有限公司 System diary data classification processing method and device and intelligent electronic equipment
CN112416797A (en) * 2020-12-02 2021-02-26 未来汽车科技(深圳)有限公司 Method and system for automatically alarming and maintaining site when embedded software runs abnormally

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859168A (en) * 2005-12-01 2006-11-08 华为技术有限公司 Transfer method and system for journal information in application system
CN101320348A (en) * 2008-06-25 2008-12-10 中兴通讯股份有限公司 Log function implementing method of embedded system
CN102158349A (en) * 2011-02-09 2011-08-17 中兴通讯股份有限公司 Log management device and method thereof
CN102214138A (en) * 2011-05-19 2011-10-12 福建星网视易信息系统有限公司 Network concentrated debugging method for embedded system software

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859168A (en) * 2005-12-01 2006-11-08 华为技术有限公司 Transfer method and system for journal information in application system
CN101320348A (en) * 2008-06-25 2008-12-10 中兴通讯股份有限公司 Log function implementing method of embedded system
CN102158349A (en) * 2011-02-09 2011-08-17 中兴通讯股份有限公司 Log management device and method thereof
CN102214138A (en) * 2011-05-19 2011-10-12 福建星网视易信息系统有限公司 Network concentrated debugging method for embedded system software

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种基于Log4J的输出组件的设计;史志英,徐义晗;《信息技术与信息化》;20080131(第1期);正文第65-67页 *

Also Published As

Publication number Publication date
CN103368756A (en) 2013-10-23

Similar Documents

Publication Publication Date Title
CN103368756B (en) For monitoring the management system of the daily record of operation for embedded system
CN106709069B (en) The big data log collection and transmission method of high reliability
CN103824340B (en) Unmanned plane power transmission line intelligent cruising inspection system and method for inspecting
JP5656358B2 (en) Fault data management
CN100589418C (en) The generation method and the generation system of alarm correlation rule
CN108197261A (en) A kind of wisdom traffic operating system
CN102367742B (en) Monitoring system
CN103926459B (en) Power supplying voltage automatic acquisition system deployed on two levels in centralized mode and method thereof
CN106559270B (en) Data analysis method and device for urban rail signal equipment
CN106649071A (en) Reporting method and device for internal process journals
CN106981191A (en) A kind of car management system and method based on intelligent vehicle mounted terminal
US20140006398A1 (en) System and Method for Energy Management Information System Reliability Assurance
CN202414169U (en) Configurable universal comprehensive avionics system
CN111277668A (en) System suitable for ITCS vehicle-mounted log intelligent analysis
CN109344033A (en) A kind of cloud log collection method based on distributed structure/architecture
CN110135598A (en) A kind of high-speed railway electricity business maintenance auxiliary system of knowledge based service
CN104199625A (en) Method, device and system for converting and outputting print data
CN109375984B (en) Station guiding display system
CN105553691A (en) Monitoring alarm realization method based on electric power supervision information
CN109445304A (en) A kind of intelligent fault analysis system and method based on cab signal
CN110667657A (en) Remote monitoring and safety management system for train operation
CN107545613A (en) EMUs ATP runs monitoring record data analysis system
CN102088376B (en) Communication monitoring system and method for integrated avionics system
CN107979174B (en) Workflow operation method based on power grid operation management system
CN110007901A (en) A kind of development system collecting regimental wind-powered electricity generation monitor supervision platform and its operation method and development approach

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant