CN104408136A - Log treatment method for public medical system - Google Patents

Log treatment method for public medical system Download PDF

Info

Publication number
CN104408136A
CN104408136A CN201410709393.3A CN201410709393A CN104408136A CN 104408136 A CN104408136 A CN 104408136A CN 201410709393 A CN201410709393 A CN 201410709393A CN 104408136 A CN104408136 A CN 104408136A
Authority
CN
China
Prior art keywords
log
daily record
dynamic link
browser device
link library
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.)
Pending
Application number
CN201410709393.3A
Other languages
Chinese (zh)
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.)
HEFEI JINGQI ELECTRONICS TECHNOLOGY Co Ltd
Original Assignee
HEFEI JINGQI ELECTRONICS TECHNOLOGY 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 HEFEI JINGQI ELECTRONICS TECHNOLOGY Co Ltd filed Critical HEFEI JINGQI ELECTRONICS TECHNOLOGY Co Ltd
Priority to CN201410709393.3A priority Critical patent/CN104408136A/en
Publication of CN104408136A publication Critical patent/CN104408136A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/22Social work or social welfare, e.g. community support activities or counselling services

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a log treatment method for public medical system. The method comprises dynamic link libraries filter logs in accordance with conditions from a log storage system according to search conditions set by users; log browsers obtain and display the logs by calling log obtaining interfaces. By the aid of the method, calling of servers corresponding to Web log browsers is facilitated, and the calling of dynamic link library of the corresponding servers of the Web log browsers is forwarded to the corresponding dynamic link libraries. The dynamic link libraries cannot be resident memories and keep accessing the log storage system, and accordingly, the efficient and stable operation effect of the log system is obtained.

Description

A kind of log processing method of public medical system
Technical field
The present invention relates to public medical system regions, specifically a kind of log processing method of public medical system.
Background technology
Log system is the important function of of medical public software platform, and it have recorded the behavior of the medical software system developed based on medical public software platform.In the medical system development phase, the targeted customer of log system is Developmental Engineer and Test Engineer, but when product is put in production environment, the user of usage log is except Developmental Engineer, also service engineering teacher can be comprised, software users, keeper etc.Dissimilar user is different to the requirement of log system, cause daily record performance history and management process complicacy high.
Conventional log system is in order to support that Web version Log Browser device adds two service processess, and no matter whether Log Browser device runs, and these two processes all can be run always, waste system resource.And exist more seriously in actual applications: because system operationally all can have daily record to export always, daily record resolution server is also just ceaselessly being resolved always, reading journal file so repeatedly, be inserted into database, take a large amount of CPU resources and magnetic disc i/o, have a strong impact on system performance.In addition, when supporting Log Browser device to show up-to-date daily record in real time, the speed of daily record resolution server parsing daily record will be slower than the renewal speed of log server, and the daily record causing user to see not is up-to-date.
summary of the inventionthe object of this invention is to provide a kind of log processing method of public medical system, to solve the high problem of daily record performance history and management process complicacy in prior art public medical system.
In order to achieve the above object, the technical solution adopted in the present invention is:
A kind of log processing method of public medical system, it is characterized in that: the Log Browser device log system of medical public software platform being configured as daily record client, log services end and Web version, the developer that wherein daily record client is medical applications provides the interface of simple and flexible, is needed the Log Sender recorded to log services end; Log services end is an executable program, for receiving daily record that daily record client sends over and being stored; Log Browser device is an executable program, for providing daily record to search service for user;
The querying condition adopting C++ dynamic link library to arrange according to user filters qualified daily record from daily record storage system, Log Browser device obtains log interface acquisition and show log by calling it, C# dynamic link library has packed one deck C# interface to C++ dynamic link library, facilitate the server calls that Web version Log Browser device is corresponding, the server that Log Browser device is corresponding is transmitted to C++ dynamic link library therein to calling of C# dynamic link library, C++ dynamic link library and C# dynamic link library can not memory-residents always, also can not access log storage system all the time, two dynamic links are loaded in internal memory along with the startup of Log Browser device, call its acquisition log interface along with Log Browser device and start access log storage system, filter qualified daily record, exit along with exiting of Log Browser device.
The present invention enormously simplify the design and implimentation of Log Browser device, Log Browser device only needs the querying condition by user is arranged be combined into SQL statement and send to Log Browser server, then receive daily record that Log Browser server returns and show, avoiding Problems existing in performance history in the past.
Accompanying drawing explanation
Fig. 1 is log system functional diagram of the present invention.
Fig. 2 is log system running figure of the present invention.
Embodiment
As shown in Figure 1, the log system of medical public software platform is configured as daily record client, log services end and Log Browser device three module compositions.The developer that wherein daily record client is medical applications provides the interface of simple and flexible, is needed the Log Sender recorded to log services end; Log services end is an executable program, for receiving daily record that daily record client sends over and being stored; Log Browser device is also an executable program, and for providing efficiently for users such as Developmental Engineer, Test Engineer, service engineerings teacher, daily record fast and accurately searches service.
The querying condition adopting C++ dynamic link library to be responsible for arranging according to user filters qualified daily record from daily record storage system, and Log Browser device obtains log interface acquisition and show log by calling it.C# dynamic link library has just packed one deck C# interface to C++ dynamic link library, facilitate the server calls that Web version Log Browser device is corresponding, the server that Web version Log Browser device is corresponding is all transmitted to C++ dynamic link library therein to calling of C# dynamic link library.In this scheme, C++ dynamic link library and C# dynamic link library can not memory-residents always, also can not access log storage system all the time.Two dynamic links are loaded in internal memory along with the startup of Log Browser device, call its acquisition log interface and start access log storage system, filter qualified daily record, exit along with exiting of Log Browser device along with Log Browser device.
The present invention can realize:
1. can export the daily record of different stage
According to the importance of daily record, daily record can be divided different stage daily record.
2. the opening and close and can join of log services of different stage
3. log in units of functional module, the opening and close and can join of the log services of the different stage of each functional module
4. set up Log Browser device
Medical software system operationally can produce a large amount of daily records, if do not analyze in these daily records by the Log Browser device of specialty and pinpoint the problems just as looking for a needle in a haystack, is worthless.Log Browser device can by module, by daily record output time, by the source code file name of output journal, by the function name of output journal, by the line number at the code place hereof of output journal, retrieve by the description of daily record and check daily record, then in the mode of close friend, user being presented in the qualified daily record retrieved.
5. the storage of log system
The module of the medical software system developed based on medical public software platform may operate on different machine and equipments, the demand of platform needs the log collection be positioned on distinct device to be stored to a place, so need log system to need to provide a daily record reception server for receiving daily record and being stored in workstation.Because large-scale medical software system may have a large amount of daily record of a lot of module records at synchronization, so log server needs under the prerequisite taking the least possible resource, accept the connection of client as much as possible, store daily record as much as possible.
6. daily record client provides simple and interface flexibly
The interface of simple and flexible is conducive to reducing the learning cost of user and probability of making a mistake, and improves development efficiency.
7. daily record client can be cross-platform
Support the operating platforms such as Windows, Linux, medical public software platform software may operate on different operating system and equipment, so need the client of the log system of medical public software platform can support corresponding operating system and equipment.
8. daily record client sets up thread-safe
Generally, the client operation of log system is under multithread mode, so daily record client must carry out the synchronous working of cross-thread, provides the interface of thread-safe to make multiple thread can simultaneously log.
Specific embodiment:
As shown in Figure 2.The present invention can carry out according to the following steps:
The service end of daily record:
1. log services end starts backward operating system application socket and is specifically designed to the connection request accepting daily record client, invoked call back function when making this socket be in listening state and register connection establishment.Then start one thread and be used for event loop, main thread is for receiving the order of user's input.
2., when there being daily record client to initiate to connect, after connection establishment, secondary thread can call the call back function of registration in 1, can register the call back function for reading data in this call back function.
3. when daily record client to log services end send data to reach service end time, secondary thread to call in 2 the call back function of registration, and in this call back function, the data (daily record) that can receive store.
Owing to being asynchronous socket, more than when there being multiple connection, three kinds of states all can exist, but for singular association, above three kinds of states occur according to the order of sequence.
Log Browser device end:
1, support that Log Browser device shows in real time, log services end is put in shared drive while the daily record received is written to file.Owing to operating in internal memory, speed is very fast, and can not increase too much burden to log services end.
2, log services end in initialization time open up one piece of shared drive, copy shared drive to when receiving daily record.

Claims (1)

1. the log processing method of a public medical system, it is characterized in that: the Log Browser device log system of medical public software platform being configured as daily record client, log services end and Web version, the developer that wherein daily record client is medical applications provides the interface of simple and flexible, is needed the Log Sender recorded to log services end; Log services end is an executable program, for receiving daily record that daily record client sends over and being stored; Log Browser device is an executable program, for providing daily record to search service for user;
The querying condition adopting C++ dynamic link library to arrange according to user filters qualified daily record from daily record storage system, Log Browser device obtains log interface acquisition and show log by calling it, C# dynamic link library has packed one deck C# interface to C++ dynamic link library, facilitate the server calls that Web version Log Browser device is corresponding, the server that Log Browser device is corresponding is transmitted to C++ dynamic link library therein to calling of C# dynamic link library, C++ dynamic link library and C# dynamic link library can not memory-residents always, also can not access log storage system all the time, two dynamic links are loaded in internal memory along with the startup of Log Browser device, call its acquisition log interface along with Log Browser device and start access log storage system, filter qualified daily record, exit along with exiting of Log Browser device.
CN201410709393.3A 2014-11-26 2014-11-26 Log treatment method for public medical system Pending CN104408136A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410709393.3A CN104408136A (en) 2014-11-26 2014-11-26 Log treatment method for public medical system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410709393.3A CN104408136A (en) 2014-11-26 2014-11-26 Log treatment method for public medical system

Publications (1)

Publication Number Publication Date
CN104408136A true CN104408136A (en) 2015-03-11

Family

ID=52645767

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410709393.3A Pending CN104408136A (en) 2014-11-26 2014-11-26 Log treatment method for public medical system

Country Status (1)

Country Link
CN (1) CN104408136A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105868340A (en) * 2016-03-28 2016-08-17 乐视控股(北京)有限公司 Log storage method and device
CN106557367A (en) * 2015-09-30 2017-04-05 联想(新加坡)私人有限公司 For device, the method and apparatus of granular service quality are provided for computing resource
CN108132873A (en) * 2016-12-01 2018-06-08 无锡中科西北星科技有限公司 Systematic procedure daily record prints and long-range multiple terminals daily record debugging control system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453378B (en) * 2008-12-30 2011-01-12 杭州华三通信技术有限公司 Method and system for log dump and audit
CN102594598A (en) * 2012-02-16 2012-07-18 浪潮(北京)电子信息产业有限公司 Log management system and implementation method thereof
CN103036959A (en) * 2012-12-07 2013-04-10 武汉邮电科学研究院 Realization method and realization system of distributed deployment application program based on input/output (IO) decoupling
CN103294489A (en) * 2012-02-23 2013-09-11 腾讯科技(深圳)有限公司 Internet application management method in open platform and task manager

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453378B (en) * 2008-12-30 2011-01-12 杭州华三通信技术有限公司 Method and system for log dump and audit
CN102594598A (en) * 2012-02-16 2012-07-18 浪潮(北京)电子信息产业有限公司 Log management system and implementation method thereof
CN103294489A (en) * 2012-02-23 2013-09-11 腾讯科技(深圳)有限公司 Internet application management method in open platform and task manager
CN103036959A (en) * 2012-12-07 2013-04-10 武汉邮电科学研究院 Realization method and realization system of distributed deployment application program based on input/output (IO) decoupling

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106557367A (en) * 2015-09-30 2017-04-05 联想(新加坡)私人有限公司 For device, the method and apparatus of granular service quality are provided for computing resource
CN105868340A (en) * 2016-03-28 2016-08-17 乐视控股(北京)有限公司 Log storage method and device
CN108132873A (en) * 2016-12-01 2018-06-08 无锡中科西北星科技有限公司 Systematic procedure daily record prints and long-range multiple terminals daily record debugging control system

Similar Documents

Publication Publication Date Title
CN108536761B (en) Report data query method and server
CN109086409B (en) Microservice data processing method and device, electronic equipment and computer readable medium
CN111324610A (en) Data synchronization method and device
US10013335B2 (en) Data flow analysis in processor trace logs using compiler-type information method and apparatus
CN102262680A (en) Distributed database proxy system based on massive data access requirement
US20120324290A1 (en) Key Based Cluster Log Coalescing
CN105721578B (en) A kind of user behavior data acquisition method and system
CN110502212A (en) It is a kind of towards the multilingual online Development Support method of high concurrent
CN110309065B (en) Concurrent execution method, device and equipment of test tasks and storage medium
CN109144799A (en) Integrated testing method, apparatus, computer equipment and storage medium
CN104408136A (en) Log treatment method for public medical system
CN112541002A (en) Program language conversion method, device, electronic equipment and storage medium
CN109446042A (en) A kind of blog management method and system for intelligent power equipment
CN112347192A (en) Data synchronization method, device, platform and readable medium
CN103077034A (en) JAVA application migration method and system for hybrid virtualization platform
CN107391528B (en) Front-end component dependent information searching method and equipment
US20180260436A1 (en) Enterprise integration processing for mainframe cobol programs
CN111488286B (en) Method and device for independently developing Android modules
CN111611479B (en) Data processing method and related device for network resource recommendation
EP2948871A1 (en) Method for accessing and automatically correlating data from a plurality of external data sources
CN112579406B (en) Log call chain generation method and device
CN117271584A (en) Data processing method and device, computer readable storage medium and electronic equipment
JP2018133044A (en) Webapi execution flow generation device and webapi execution flow generation method
CN115934537A (en) Interface test tool generation method, device, equipment, medium and product
CN110806967A (en) Unit testing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 230088, Anhui Hefei hi tech Zone animation and service outsourcing industry development base, D7 building, three floor

Applicant after: Anhui wonder network Polytron Technologies Inc

Address before: 230088, Anhui Hefei hi tech Zone animation and service outsourcing industry development base, D7 building, three floor

Applicant before: HEFEI JINGQI ELECTRONICS TECHNOLOGY CO., LTD.

COR Change of bibliographic data
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150311