CN103714179A - Multi-language supporting method and system for system blog - Google Patents
Multi-language supporting method and system for system blog Download PDFInfo
- Publication number
- CN103714179A CN103714179A CN201410008641.1A CN201410008641A CN103714179A CN 103714179 A CN103714179 A CN 103714179A CN 201410008641 A CN201410008641 A CN 201410008641A CN 103714179 A CN103714179 A CN 103714179A
- Authority
- CN
- China
- Prior art keywords
- format
- journal
- daily record
- language environment
- string
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/903—Querying
- G06F16/90335—Query processing
- G06F16/90344—Query processing by using string matching techniques
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention provides a multi-language supporting method and system for a system blog. The method comprises the following steps that the blog format and a blog format parameter are extracted from a received system blog; a format string corresponding to the received blog format is found in the format string of the stored blog format in each language environment according to a language environment of a current system; the format string corresponding to the received blog format is combined with the blog format parameter to obtain the system blog supported by the language environment of the current system. The multi-language system blog obtained through the multi-language supporting method and system for the system blog is not limited by an operation system so as to be used in different software systems in a changeable universal mode.
Description
Technical field
The present invention relates to a kind of multilingual support method and system of system journal.
Background technology
System journal is the information of hardware in register system, software and system problem, event in simultaneously all right surveillance.User can check the wrong reason occurring by it, or finds the vestige that assailant stays when under attack.Along with the development of system software, more and more urgent to the international requirement of system journal.So-called system journal internationalization refer to the display language of system journal can be along with the difference of system language environment difference.
At present, the internationalization that some operating system can back-up system daily record, as WINDOWS system, it uses the mode of resource file to carry out multilingual support to system journal; When system is disposed, only need provide the resource file of appointed language.LINUX system and for example, it can use po file to carry out multilingual support, the system journal of different language is stored in different po files, in daily record, writes the fashionable po file acquisition system journal form that first passes through, recycling appointed language is carried out writing of system journal.
But existing system journal internationalization scheme is subject to the restriction of operating system in the use, cannot intercommunication use.In addition, existing multi-lingual mapping all occurs in daily record write phase, inevitably can reduce the execution efficiency of software.
Summary of the invention
The invention provides a kind of multilingual support method and system of system journal, to solve, how to provide a kind of international technical matters of system journal general, that be not subject to operating system restriction.
For solving the problems of the technologies described above, the invention provides a kind of multilingual support method of system journal, described method comprises:
From the system journal receiving, extract journal format and journal format parameter;
According to the language environment of current system, in the format string at the journal format of storing under every kind of language environment, find the format string corresponding with receiving journal format;
Format string and the described journal format parameter corresponding with receiving journal format are combined, obtain the system journal that current system language environment is supported.
Further, described method comprises:
When system needs reading system daily record, according to the language environment of current system, the format string at the journal format of storing under every kind of language environment finds corresponding with receiving journal format accordingly format string;
Format string and the described journal format parameter corresponding with receiving journal format are combined, obtain the system journal that current system language environment is supported.
Further, described method comprises:
From the system journal receiving, extract the numbering that characterizes journal format;
According to the language environment of current system, in the described journal format numbering of storage and the corresponding relation of the format string of journal format under every kind of language environment, find the format string corresponding with receiving journal format.
For solving the problems of the technologies described above, the present invention also provides a kind of multiple language support system of system journal, and described system comprises that daily record writes interface module, log store module, daily record multilingual database and multilingual daily record generation module, wherein,
Described daily record writes interface module, for extracting journal format and journal format parameter from the system journal receiving, and the data of extraction is sent to described log store module;
Described log store module, for storing daily record form and journal format parameter;
Described daily record multilingual database, the format string for storing daily record form under every kind of language environment;
Described multilingual daily record generation module, be used for according to the language environment of current system, in described daily record multilingual database, find the format string corresponding with journal format in log store module, and by this journal format in log store module corresponding journal format parameter with described in the format string that finds combine, obtain the system journal that current system language environment is supported.
Further,
Described multilingual daily record generation module, for when system needs reading system daily record, according to the language environment of current system, in described daily record multilingual database, find the format string corresponding with journal format in log store module, and by this journal format in log store module corresponding journal format parameter with described in the format string that finds combine, obtain the system journal that current system language environment is supported.
Further,
Described daily record writes interface module, extracts the numbering that characterizes journal format for the system journal from receiving;
Described daily record multilingual database, for storing the corresponding relation of described journal format numbering and the format string of journal format under every kind of language environment.
Above-mentioned multi-language system daily record support scheme is independent of operating system, is no longer subject to the restriction of operating system in use; In addition, technique scheme is converted to multilingual operation by system journal and is put into when system needs reading system daily record and carries out, and has improved the execution efficiency of software.
Accompanying drawing explanation
Fig. 1 is the multilingual support method flow diagram of the system journal of the present embodiment;
Fig. 2 is the multiple language support system composition diagram of the system journal of the present embodiment.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, hereinafter in connection with accompanying drawing, embodiments of the invention are elaborated.It should be noted that, in the situation that not conflicting, the embodiment in the application and the feature in embodiment be combination in any mutually.
Fig. 1 is the multilingual support method flow diagram of the system journal of the present embodiment.
S101 receives the system journal that software systems need to write;
S102 extracts journal format and journal format parameter from the system journal receiving;
For existing software systems, its system journal form is fixed, as the typical system journal form that is applied to linux software systems is:
LogFormat”%h%l%u%t\”%r\”%>s%b”common
Customlog?logs/acess_log?common
It has defined a kind of specific record format character string, and is common by the order of this record format character string, and " % " wherein indicates this place's character string can use correspondingly information to replace.
Journal format parameter is the information of locating for replacing journal format " % " of system journal record;
The journal format extracting from the system journal receiving can be the numbering that characterizes journal format;
S103, according to the language environment of current system, finds the format string corresponding with receiving journal format in the format string at the journal format of storing under every kind of language environment;
If what extract from the system journal receiving is the numbering that characterizes journal format, can directly store corresponding journal format numbering and the corresponding relation of the format string of journal format under every kind of language environment, save storage space;
S104 combines format string and the described journal format parameter corresponding with receiving journal format, obtains the system journal that current system language environment is supported.
In order to improve the execution efficiency of software, the present embodiment can be placed on the multilingual mapping process of system journal in daily record view procedure and realize, when system needs reading system daily record, according to the language environment of current system, the format string at the journal format of storing under every kind of language environment finds corresponding with receiving journal format accordingly format string again; Format string and the described journal format parameter corresponding with receiving journal format are combined, obtain the system journal that current system language environment is supported.
Fig. 2 is the multiple language support system composition diagram of the system journal of the present embodiment.
The multiple language support system of this system journal comprises: daily record writes interface module, log store module, daily record multilingual database and multilingual daily record generation module, wherein,
Described daily record writes interface module, for extracting journal format and journal format parameter from the system journal receiving, and the data of extraction is sent to described log store module; It can be the numbering that characterizes journal format that daily record writes the journal format that interface module extracts from the system journal receiving;
Described log store module, for storing daily record form and journal format parameter; When log store module stores journal format and journal format parameter, can adopt classification storage mode, to improve the reading speed of journal format and journal format parameter, as deposited the journal format newly receiving and journal format parameter in read or write speed, write faster queue, when it is when the time that writes queue stores surpasses Preset Time, being write read or write speed ratio, to write queue slow again, but the larger log store unit of memory capacity; Described log store unit can be the memory devices such as hard disk;
Described daily record multilingual database, the format string for storing daily record form under every kind of language environment; When characterizing Japanese form with journal format numbering, daily record multilingual database can directly be stored the corresponding relation of described journal format numbering and the format string of journal format under every kind of language environment, has reduced storage space;
Described multilingual daily record generation module, be used for according to the language environment of current system, in described daily record multilingual database, find the format string corresponding with journal format in log store module, and by this journal format in log store module corresponding journal format parameter with described in the format string that finds combine, obtain the system journal that current system language environment is supported.
In order to improve the execution efficiency of software, the present embodiment can be placed on the multilingual mapping process of system journal in daily record view procedure and realize, by described multilingual daily record generation module when system needs reading system daily record, according to the language environment of current system, in described daily record multilingual database, find the format string corresponding with journal format in log store module, and by this journal format in log store module corresponding journal format parameter with described in the format string that finds combine, obtain the system journal that current system language environment is supported.
One of ordinary skill in the art will appreciate that all or part of step in said method can come instruction related hardware to complete by program, described program can be stored in computer-readable recording medium, as ROM (read-only memory), disk or CD etc.Alternatively, all or part of step of above-described embodiment also can realize with one or more integrated circuit, and correspondingly, each the module/unit in above-described embodiment can adopt the form of hardware to realize, and also can adopt the form of software function module to realize.The present invention is not restricted to the combination of the hardware and software of any particular form.
It should be noted that; the present invention also can have other various embodiments; in the situation that not deviating from spirit of the present invention and essence thereof; those of ordinary skill in the art can make according to the present invention various corresponding changes and distortion, but these corresponding changes and distortion all should belong to the protection domain of the appended claim of the present invention.
Claims (6)
1. a multilingual support method for system journal, is characterized in that, described method comprises:
From the system journal receiving, extract journal format and journal format parameter;
According to the language environment of current system, in the format string at the journal format of storing under every kind of language environment, find the format string corresponding with receiving journal format;
Format string and the described journal format parameter corresponding with receiving journal format are combined, obtain the system journal that current system language environment is supported.
2. the method for claim 1, is characterized in that, described method comprises:
When system needs reading system daily record, according to the language environment of current system, the format string at the journal format of storing under every kind of language environment finds corresponding with receiving journal format accordingly format string;
Format string and the described journal format parameter corresponding with receiving journal format are combined, obtain the system journal that current system language environment is supported.
3. method as claimed in claim 1 or 2, is characterized in that, described method comprises:
From the system journal receiving, extract the numbering that characterizes journal format;
According to the language environment of current system, in the described journal format numbering of storage and the corresponding relation of the format string of journal format under every kind of language environment, find the format string corresponding with receiving journal format.
4. a multiple language support system for system journal, is characterized in that, described system comprises that daily record writes interface module, log store module, daily record multilingual database and multilingual daily record generation module, wherein,
Described daily record writes interface module, for extracting journal format and journal format parameter from the system journal receiving, and the data of extraction is sent to described log store module;
Described log store module, for storing daily record form and journal format parameter;
Described daily record multilingual database, the format string for storing daily record form under every kind of language environment;
Described multilingual daily record generation module, be used for according to the language environment of current system, in described daily record multilingual database, find the format string corresponding with journal format in log store module, and by this journal format in log store module corresponding journal format parameter with described in the format string that finds combine, obtain the system journal that current system language environment is supported.
5. system as claimed in claim 4, is characterized in that,
Described multilingual daily record generation module, for when system needs reading system daily record, according to the language environment of current system, in described daily record multilingual database, find the format string corresponding with journal format in log store module, and by this journal format in log store module corresponding journal format parameter with described in the format string that finds combine, obtain the system journal that current system language environment is supported.
6. the system as described in claim 4 or 5, is characterized in that,
Described daily record writes interface module, extracts the numbering that characterizes journal format for the system journal from receiving;
Described daily record multilingual database, for storing the corresponding relation of described journal format numbering and the format string of journal format under every kind of language environment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410008641.1A CN103714179A (en) | 2014-01-08 | 2014-01-08 | Multi-language supporting method and system for system blog |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410008641.1A CN103714179A (en) | 2014-01-08 | 2014-01-08 | Multi-language supporting method and system for system blog |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103714179A true CN103714179A (en) | 2014-04-09 |
Family
ID=50407154
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410008641.1A Pending CN103714179A (en) | 2014-01-08 | 2014-01-08 | Multi-language supporting method and system for system blog |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103714179A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106789195A (en) * | 2016-12-02 | 2017-05-31 | 华为技术有限公司 | A kind of event-handling method and Network Management Equipment, server |
CN108268471A (en) * | 2016-12-30 | 2018-07-10 | 北京国双科技有限公司 | The read method and device of journal file |
CN114327716A (en) * | 2021-12-27 | 2022-04-12 | 凌云光技术股份有限公司 | Method and system for generating local language operation log based on XML language |
CN116974877A (en) * | 2023-09-25 | 2023-10-31 | 湖南三湘银行股份有限公司 | Log collection method under cross-language scene |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7536376B2 (en) * | 2003-10-03 | 2009-05-19 | International Business Machines Corporation | Task oriented log retrieval utilizing a self-learning search tool |
CN101694617A (en) * | 2009-09-01 | 2010-04-14 | 卡斯柯信号有限公司 | Multi-language support implementing method based on resource identifier |
CN103412924A (en) * | 2013-08-12 | 2013-11-27 | 东软集团股份有限公司 | Log multi-language query method and system |
-
2014
- 2014-01-08 CN CN201410008641.1A patent/CN103714179A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7536376B2 (en) * | 2003-10-03 | 2009-05-19 | International Business Machines Corporation | Task oriented log retrieval utilizing a self-learning search tool |
CN101694617A (en) * | 2009-09-01 | 2010-04-14 | 卡斯柯信号有限公司 | Multi-language support implementing method based on resource identifier |
CN103412924A (en) * | 2013-08-12 | 2013-11-27 | 东软集团股份有限公司 | Log multi-language query method and system |
Non-Patent Citations (1)
Title |
---|
王艳清: "基于XML的网络日志分析", 《北京化工大学学报》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106789195A (en) * | 2016-12-02 | 2017-05-31 | 华为技术有限公司 | A kind of event-handling method and Network Management Equipment, server |
CN108268471A (en) * | 2016-12-30 | 2018-07-10 | 北京国双科技有限公司 | The read method and device of journal file |
CN114327716A (en) * | 2021-12-27 | 2022-04-12 | 凌云光技术股份有限公司 | Method and system for generating local language operation log based on XML language |
CN116974877A (en) * | 2023-09-25 | 2023-10-31 | 湖南三湘银行股份有限公司 | Log collection method under cross-language scene |
CN116974877B (en) * | 2023-09-25 | 2024-01-30 | 湖南三湘银行股份有限公司 | Log collection method under cross-language scene |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20170344433A1 (en) | Apparatus and method for data migration | |
CN107577420B (en) | File processing method and device and server | |
US10609141B2 (en) | Methods and apparatuses for cluster switching | |
CN102982130A (en) | Synchronized method for not only structured query language (NOSQL) and relational database management system (RDBMS) database and system thereof | |
WO2016010570A1 (en) | Partial snapshot creation | |
CN104077380A (en) | Method and device for deleting duplicated data and system | |
CN109284066B (en) | Data processing method, device, equipment and system | |
CN103714179A (en) | Multi-language supporting method and system for system blog | |
CN106502830B (en) | A kind of method for restoring system backup based on Btrfs file system | |
US20180307684A1 (en) | Method and Device for Reading and Writing Video Data in NAS Device | |
CN103176867A (en) | Fast file differential backup method | |
CN106096447A (en) | A kind of document protection method and device | |
EP3343395A1 (en) | Data storage method and apparatus for mobile terminal | |
US8595426B2 (en) | Handling commands within a write-once read-many storage device configuration | |
US20140025373A1 (en) | Fixing Broken Tagged Words | |
CN104268097A (en) | Metadata processing method and system | |
CN113641446A (en) | Memory snapshot creating method, device and equipment and readable storage medium | |
CN102567081B (en) | Based on overall method to set up and the system of multi-process | |
US9977621B2 (en) | Multimedia data backup method, user terminal and synchronizer | |
US9535796B2 (en) | Method, apparatus and computer for data operation | |
CN105528334A (en) | Document operation processing method and terminal | |
CN102760212B (en) | Virtual desktop malicious code detecting method based on storage mirroring cloning mechanism | |
CN114328007B (en) | Container backup and restoration method, device and medium thereof | |
CN102915338A (en) | Data synchronization method of distributed file systems and file systems | |
CN104133726A (en) | Process context mandatory access control method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20140409 |
|
WD01 | Invention patent application deemed withdrawn after publication |