JP2007058265A - Log output controller and log output control program - Google Patents

Log output controller and log output control program Download PDF

Info

Publication number
JP2007058265A
JP2007058265A JP2005239382A JP2005239382A JP2007058265A JP 2007058265 A JP2007058265 A JP 2007058265A JP 2005239382 A JP2005239382 A JP 2005239382A JP 2005239382 A JP2005239382 A JP 2005239382A JP 2007058265 A JP2007058265 A JP 2007058265A
Authority
JP
Japan
Prior art keywords
log information
log
information
detailed log
detailed
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
JP2005239382A
Other languages
Japanese (ja)
Inventor
Giichi Yomogida
義一 蓬田
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.)
Hitachi Software Engineering Co Ltd
Original Assignee
Hitachi Software Engineering 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 Hitachi Software Engineering Co Ltd filed Critical Hitachi Software Engineering Co Ltd
Priority to JP2005239382A priority Critical patent/JP2007058265A/en
Publication of JP2007058265A publication Critical patent/JP2007058265A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a log information output controller capable of efficiently recording and managing log information by outputting only log information needed to decide fault contents etc., to a file device when a fault occurs to an application program. <P>SOLUTION: A log output control program 120 includes: respective processing means which are an internal information receiving means 121, a detailed log information generating means 122, a detailed log information storage means 123, a program error information receiving means 124, a fault log information generating means 125, a detailed log output request means 126, a log message generating means 127, and a log message output means 128; and a detailed log information holding area 129 as a temporary storage area. The detailed log output means 126 outputs detailed log information stored in the detailed log information holding area 129 as information to be stored in a log storage means 130 within specified ranges right before and right after the timing of reception of program error information. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、コンピュータシステム等におけるアプリケーションプログラムに関するログ情報の出力制御装置及びプログラムに関する。   The present invention relates to a log information output control device and program related to an application program in a computer system or the like.

従来より、アプリケーションプログラムにおける障害発生の際の障害内容及び解決方法の判断材料の提供を目的として、アプリケーションプログラム自身の内部情報をログ情報としてファイル装置に格納する処理が一般に行われている。
この場合、可能な限り詳細な内部情報をログ情報として出力することで、障害内容及び解決方法の判断のための有用な資料を提供することが可能となる。
即ち、障害発生前の内部情報には、障害を発生させた原因となる情報が可能性が高く、また、障害発生後の内部情報も、発生した障害に対するエラー処理が正しく行われているかを判断するための材料となり、障害内容及び解決方法の判断がより容易ななものとなっていた。
例えば、ある障害発生が引き金となり後続する処理で別の障害が発生する場合、先に発生した障害のエラー処理が正しく行われているかを確認することで、後に発生した障害が、先に発生した障害のエラー処理の不備に起因するものかどうかを判断することが可能になる。
2. Description of the Related Art Conventionally, a process of storing internal information of an application program itself as log information in a file device is generally performed for the purpose of providing a failure content and a determination method of a solution method when a failure occurs in the application program.
In this case, by outputting as detailed internal information as possible as log information, it is possible to provide useful data for determining the content of the failure and the solution.
In other words, it is highly possible that the internal information before the occurrence of the failure is the information that caused the failure, and the internal information after the occurrence of the failure also determines whether the error handling for the occurred failure is performed correctly. Therefore, it becomes easier to judge the content of the obstacle and the solution method.
For example, when a failure occurs as a trigger and another failure occurs in the subsequent process, the failure that occurred later occurred first by checking whether the error handling of the failure that occurred earlier was performed correctly It is possible to determine whether or not the error is due to faulty error handling.

一方で、ログ情報として出力する内部情報が詳細なものになるほど、データ量が増加することとなるため、ログ情報を記録するファイル装置の容量が満杯になるまでの期間が短くなり、障害の判別・解決のために有効なログ情報を保存できなくなる可能性が高くなっていた。
この点について、従来のログ情報格納方式として、ホストシステムが出力するログ情報をファイル装置に書き出すとともに、出力したログ情報数を計測し、ログ情報数が閾値を超えた場合に、ファイル装置に書き出したログ情報を再び読み込み、ログ情報の重要度を判定し、重要度の高いログ情報だけを再びファイル装置に書き出して、重要度の低いログ情報は統計情報としてファイル装置に書き出す構成が公知となっている(例えば、特許文献1参照。)。
特開平10−275098号公報
On the other hand, the more detailed the internal information that is output as log information, the larger the amount of data, so the period until the capacity of the file device that records the log information becomes full is shortened, and the failure is determined. -There was a high possibility that effective log information could not be saved for resolution.
In this regard, as a conventional log information storage method, the log information output by the host system is written to the file device, the number of output log information is measured, and the log information is written to the file device when the number exceeds the threshold. It is well known that the log information is read again, the importance of the log information is judged, only the log information with high importance is written again to the file device, and the log information with low importance is written to the file device as statistical information. (For example, refer to Patent Document 1).
Japanese Patent Laid-Open No. 10-275098

しかし、前記特許文献1に記載の構成では、ログ情報の重要度の判断基準が明確ではなく、必ずしも障害内容や解決方法の判別に必要なログ情報の記録を行うことができないという問題があった。
また、ログ情報数の増加により、ファイル装置への書き出し処理も増加するため、より多くのコンピュータリソースを消費することとなっていた。従って、前記特許文献1のように、通常のログ情報の書き出しに加えて、重要度の判定のための再読み込みや書き戻しを行った場合、より一層のコンピュータリソースが消費され、アプリケーションプログラム自身のパフォーマンスの低下を引き起こす恐れがあった。
However, the configuration described in Patent Document 1 has a problem that the criteria for determining the importance of log information is not clear, and it is not always possible to record log information necessary for determining the content of a failure or a solution. .
In addition, since the number of log information increases, the writing process to the file device also increases, so that more computer resources are consumed. Therefore, as in Patent Document 1, in addition to normal log information writing, when rereading or writing back for importance determination is performed, more computer resources are consumed, and the application program itself There was a risk of performance degradation.

本発明は前記課題を解決するためのものであり、アプリケーションプログラムのログ情報の出力制御装置として、アプリケーションプログラムの障害発生の際に、障害内容等の判別のために必要なログ情報のみをファイル装置に出力することにより、ログ情報を効率よく記録,管理することを可能とするログ情報出力制御装置を提供することを目的とする。   SUMMARY OF THE INVENTION The present invention is to solve the above-mentioned problem, and as an output control device for log information of an application program, only a log information necessary for discriminating the content of the failure when a failure of the application program occurs is a file device. It is an object of the present invention to provide a log information output control device that enables log information to be recorded and managed efficiently.

前記課題を解決するため本発明のログ出力制御装置は、アプリケーションプログラムから出力された内部情報と、プログラムエラー情報とに基づき、ログメッセージを生成して記憶装置に記憶するログ出力制御装置において、前記内部情報を一時記憶領域に格納する手段と、前記プログラムエラー情報の受信時を基準とした任意の範囲の内部情報を前記一時記憶領域から取得して、前記ログメッセージを生成する手段と、生成したログメッセージを前記記憶装置に記憶する手段とを備えることを特徴とする。
また、前記任意の範囲の内部情報は、前記プログラムエラー情報の受信時に格納された内部情報を基準とした前,後の所定数の内部情報を示すことを特徴とする。
また、前記任意の範囲の内部情報は、前記プログラムエラー情報の受信時を基準とした前,後の所定時間内に格納された内部情報を示すことを特徴とする。
また、本発明のログ出力制御プログラムは、アプリケーションプログラムから出力された内部情報と、プログラムエラー情報とに基づき、ログメッセージを生成して記憶装置に記憶する処理をコンピュータに実行させるログ出力制御プログラムにおいて、前記内部情報を一時記憶領域に格納する処理と、前記プログラムエラー情報の受信時を基準とした任意の範囲に格納された内部情報を前記一時記憶領域から取得して、前記ログメッセージを生成する処理と、生成したログメッセージを前記記憶装置に記憶する処理とを前記コンピュータに実行させることを特徴とする。
また、前記任意の範囲の内部情報は、前記プログラムエラー情報の受信時に格納された内部情報を基準とした前,後の所定数の内部情報を示すことを特徴とする。
また、前記任意の範囲の内部情報は、前記プログラムエラー情報の受信時を基準とした前,後の所定時間内に格納された内部情報を示すことを特徴とする。
In order to solve the above problems, the log output control device of the present invention is a log output control device that generates a log message based on internal information output from an application program and program error information and stores the log message in the storage device. Means for storing internal information in a temporary storage area, means for acquiring internal information in an arbitrary range based on the reception time of the program error information from the temporary storage area, and generating the log message; Means for storing a log message in the storage device.
The internal information in the arbitrary range indicates a predetermined number of internal information before and after the internal information stored when the program error information is received.
Further, the internal information in the arbitrary range indicates internal information stored within a predetermined time before and after the time when the program error information is received.
The log output control program of the present invention is a log output control program for causing a computer to execute a process of generating a log message and storing it in a storage device based on internal information output from an application program and program error information. , Storing the internal information in the temporary storage area, and acquiring the internal information stored in an arbitrary range based on the reception time of the program error information from the temporary storage area, and generating the log message The computer is caused to execute processing and processing for storing the generated log message in the storage device.
The internal information in the arbitrary range indicates a predetermined number of internal information before and after the internal information stored when the program error information is received.
Further, the internal information in the arbitrary range indicates internal information stored within a predetermined time before and after the time when the program error information is received.

以上の構成により本発明では、アプリケーションプログラムの障害発生時において、障害発生の原因となった命令の直前と直後の一定数又は一定期間の内部情報のみを詳細ログ情報としてファイル装置に出力することとしたので、アプリケーションプログラム自身のパフォーマンス低下を抑えながら、発生した障害とその障害の判別・解決方法の判断材料となる可能性の高いログ情報を効率良く取得し管理することが可能となる。   With the above configuration, in the present invention, when an application program failure occurs, only a fixed number of internal information immediately before and immediately after the instruction that caused the failure or a predetermined period of internal information is output to the file device as detailed log information. As a result, it is possible to efficiently acquire and manage log information that is likely to be a material for determining a failure that has occurred and a method for determining and solving the failure, while suppressing a decrease in performance of the application program itself.

以下、本発明の一実施の形態に係るログ情報出力制御装置について、図面に基づき説明する。
図1は、本実施の形態に係るログ情報出力制御装置を備えたコンピュータシステムの概略構成を示すブロック図である。
本実施の形態に係るコンピュータシステムは、ログ情報の出力対象となるアプリケーションプログラム110と、ログ出力制御プログラム120と、ログ情報の出力先となるログ記憶装置130とから構成される。
アプリケーションプログラム110は、アプリケーションプログラム110自身に定義された命令を順次実行して何らかの処理を行うコンピュータシステム上で動作するプログラムであり、ログ情報出力プログラム120に対応する処理手段として、内部情報送信手段111と、エラー発生判定手段112と、プログラムエラー情報送信手段113とを備える。
内部情報送信手段111は、アプリケーションプログラム110が保持する命令実行時の変数値などの内部情報をログ出力制御プログラム120に送信する。
エラー発生判定手段112は、アプリケーションプログラム110の命令の実行時にプログラムエラーの発生を判定する。
プログラムエラー情報送信手段113は、エラー発生判定手段112の判定結果に応じて、発生したプログラムエラーの情報をログ出力制御プログラム120に送信する。
ログ出力制御プログラム120は、内部情報受信手段121,詳細ログ情報生成手段122,詳細ログ情報格納手段123,プログラムエラー情報受信手段124,障害ログ情報生成手段125,詳細ログ出力要求手段126,ログメッセージ生成手段127,ログメッセージ出力手段128の各処理手段と、一時記憶領域としての詳細ログ情報保持領域129とを備える。
内部情報受信手段121は、内部情報送信手段111から内部情報を受信する。
詳細ログ情報生成手段122は、内部情報受信手段121の受信した内部情報に基づき詳細ログ情報を生成する。
詳細ログ情報格納手段123は、詳細ログ情報生成手段122の生成した詳細ログ情報を詳細ログ情報保持領域129に格納する。
プログラムエラー情報受信手段124は、プログラムエラー情報送信手段113から送信されたプログラムエラー情報を受信する。
障害ログ情報生成手段125は、プログラムエラー情報受信手段124の受信したプログラムエラー情報に基づき障害ログ情報を生成する。
詳細ログ出力手段126は、プログラムエラー情報受信手段124のプログラムエラー情報の受信に応じて、詳細ログ保持領域129に格納された詳細ログ情報を出力する。
ログメッセージ生成手段127は、詳細ログ出力手段126が詳細ログ情報保持領域129から出力した詳細ログ情報と、障害ログ情報生成手段125の生成した障害ログ情報とに基づき詳細ログメッセージ及び障害ログメッセージを生成する。
ログメッセージ出力手段128は、ログメッセージ生成手段127の生成した詳細ログメッセージ及び障害ログメッセージをログ記憶装置130に出力する。
本実施の形態では、詳細ログ出力手段126により、プログラムエラー情報受信手段124によるプログラムエラー情報受信のタイミングの直前及び直後の所定範囲内(一定数又は一定期間)に詳細ログ情報保持領域129に格納された詳細ログ情報をログ記憶装置130の記憶対象として出力することとしている。
Hereinafter, a log information output control device according to an embodiment of the present invention will be described with reference to the drawings.
FIG. 1 is a block diagram illustrating a schematic configuration of a computer system including a log information output control device according to the present embodiment.
The computer system according to the present embodiment includes an application program 110 that is an output target of log information, a log output control program 120, and a log storage device 130 that is an output destination of log information.
The application program 110 is a program that operates on a computer system that sequentially executes instructions defined in the application program 110 itself and performs some processing, and an internal information transmission unit 111 as a processing unit corresponding to the log information output program 120. And an error occurrence determination unit 112 and a program error information transmission unit 113.
The internal information transmitting unit 111 transmits internal information such as a variable value at the time of executing an instruction held by the application program 110 to the log output control program 120.
The error occurrence determination unit 112 determines the occurrence of a program error when an instruction of the application program 110 is executed.
The program error information transmission unit 113 transmits information on the generated program error to the log output control program 120 according to the determination result of the error occurrence determination unit 112.
The log output control program 120 includes an internal information receiving means 121, a detailed log information generating means 122, a detailed log information storing means 123, a program error information receiving means 124, a failure log information generating means 125, a detailed log output requesting means 126, a log message. Each processing unit includes a generation unit 127 and a log message output unit 128, and a detailed log information holding area 129 as a temporary storage area.
The internal information receiving unit 121 receives internal information from the internal information transmitting unit 111.
The detailed log information generating unit 122 generates detailed log information based on the internal information received by the internal information receiving unit 121.
The detailed log information storage unit 123 stores the detailed log information generated by the detailed log information generation unit 122 in the detailed log information holding area 129.
The program error information receiving unit 124 receives the program error information transmitted from the program error information transmitting unit 113.
The failure log information generation unit 125 generates failure log information based on the program error information received by the program error information reception unit 124.
The detailed log output means 126 outputs the detailed log information stored in the detailed log holding area 129 in response to the program error information received by the program error information receiving means 124.
The log message generation unit 127 generates a detailed log message and a failure log message based on the detailed log information output from the detailed log information holding area 129 by the detailed log output unit 126 and the failure log information generated by the failure log information generation unit 125. Generate.
The log message output unit 128 outputs the detailed log message and the failure log message generated by the log message generation unit 127 to the log storage device 130.
In this embodiment, the detailed log output unit 126 stores the detailed log information in the detailed log information holding area 129 within a predetermined range (a fixed number or a fixed period) immediately before and after the timing of receiving the program error information by the program error information receiving unit 124. The detailed log information is output as a storage target of the log storage device 130.

以上の構成に基づき、本実施の形態に係るログ情報出力制御装置の行う処理について説明する。
図2は、アプリケーションプログラム110の一例として、Java(「Java」は、米国サンマイクロシステムズ社の登録商標である。)で記述した命令群を示す図である。
メソッド210は、アプリケーションプログラム110に定義された複数の命令で構成されるJavaのメソッドであり、アプリケーションプログラム110はメソッド210の命令を先頭から順に実行する。
エラー発生判定手段112に相当するプログラムエラー判定構造211は、try節212とcatch節213とで構成され、アプリケーションプログラム110はtry節212内の命令群214の実行時にJavaにおけるプログラムエラーとしての例外が発生すると、それ以降の命令群を実行せずにcatch節213に制御を移し、catch節213内の命令群215を実行する。catch節213内の命令群215では、catch行で定義されたプログラムエラー変数230で例外情報にアクセスすることが可能である。
なお、本例では、Javaのtry〜catch構文によってエラー判定手段111を実現しているが、if構文などのプログラムの一般的な制御構造でも実現可能である。
内部情報送信手段111に相当する詳細ログ出力命令216、217、218、219は、引数231、引数232に示すように、アプリケーションプログラム110の内部情報として、引数231にクラス名を、引数232にメッセージをそれぞれ文字列形式で指定して実行することが可能である。また、式233に示すように、プログラム中の変数を「+」文字で連結して引数232に指定することも可能である。
エラー発生命令220は、プログラムエラーが発生する可能性のある命令であり、引数234に数値を構成する文字列(0〜9)以外が指定された場合にプログラムエラーが発生する。
プログラムエラー情報送信手段113に相当する障害ログ出力命令221は、アプリケーションプログラム110の例外情報と内部情報をログ出力制御プログラム120に出力する命令であり、詳細ログ出力命令216〜219と同様に、アプリケーションプログラム110の内部情報として、引数にクラス名、メッセージを文字列で指定するとともに、引数235に示すように、プログラムエラー変数230を引数として指定することで、例外情報を指定して実行することが可能である。
Based on the above configuration, processing performed by the log information output control apparatus according to the present embodiment will be described.
FIG. 2 is a diagram showing an instruction group described in Java (“Java” is a registered trademark of Sun Microsystems, Inc.) as an example of the application program 110.
The method 210 is a Java method composed of a plurality of instructions defined in the application program 110, and the application program 110 executes the instructions of the method 210 in order from the top.
The program error determination structure 211 corresponding to the error occurrence determination means 112 is configured by a try clause 212 and a catch clause 213, and the application program 110 generates an exception as a program error in Java when the instruction group 214 in the try clause 212 is executed. When it occurs, control is transferred to the catch clause 213 without executing the subsequent instruction group, and the instruction group 215 in the catch clause 213 is executed. In the instruction group 215 in the catch clause 213, it is possible to access exception information with the program error variable 230 defined in the catch line.
In this example, the error determination unit 111 is realized by the Java try-catch syntax, but it can also be realized by a general control structure of a program such as an if syntax.
Detailed log output commands 216, 217, 218, and 219 corresponding to the internal information transmission unit 111, as indicated by the arguments 231 and 232, are the internal information of the application program 110, the class name as the argument 231 and the message as the argument 232 Can be specified and executed in a character string format. Also, as shown in Expression 233, variables in the program can be specified as an argument 232 by connecting them with a “+” character.
The error occurrence instruction 220 is an instruction that may cause a program error, and a program error occurs when an argument 234 other than a character string (0 to 9) constituting a numerical value is designated.
The failure log output command 221 corresponding to the program error information transmission unit 113 is a command for outputting the exception information and internal information of the application program 110 to the log output control program 120. Similarly to the detailed log output commands 216 to 219, As internal information of the program 110, a class name and a message are specified as a character string as an argument, and a program error variable 230 is specified as an argument as shown by an argument 235, so that exception information can be specified and executed. Is possible.

図3は、アプリケーションプログラム110の内部情報に基づき詳細ログ情報生成手段122の生成した詳細ログ情報のデータ構造の一例を示す図である。
本例に示す詳細ログ情報は、生成時刻301,クラス名302,メッセージ303の各データ項目を有する。
生成時刻301は、詳細ログ情報生成手段122による生成処理が行われた時刻を示す。
クラス名302は、アプリケーションプログラム110における詳細ログ情報出力命令が実行されたクラス名を示す文字列である。
メッセージ303は、アプリケーションプログラム110の内部情報を含んだメッセージを表す文字列である。
FIG. 3 is a diagram illustrating an example of the data structure of the detailed log information generated by the detailed log information generating unit 122 based on the internal information of the application program 110.
Detailed log information shown in this example includes data items of a generation time 301, a class name 302, and a message 303.
The generation time 301 indicates the time when the generation processing by the detailed log information generation unit 122 is performed.
The class name 302 is a character string indicating the class name for which the detailed log information output command in the application program 110 has been executed.
A message 303 is a character string representing a message including internal information of the application program 110.

図4は、アプリケーションプログラム110のプログラムエラー情報に基づき障害ログ情報生成手段125が生成した障害ログ情報のデータ構造の一例を示す図である。
本例に示す障害ログ情報は、生成時刻401,クラス名402,メッセージ403,例外情報404の各データ項目を有する。
生成時刻401は、障害ログ情報生成手段125による生成処理が行われた時刻を示す。
クラス名は、アプリケーションプログラム110における障害ログ情報出力命令が実行されたクラス名を示す文字列である。
メッセージ403は、アプリケーションプログラム110の内部情報を含んだメッセージを表す文字列である。
例外情報404は、発生した例外情報の詳細を表す。
FIG. 4 is a diagram illustrating an example of the data structure of the failure log information generated by the failure log information generation unit 125 based on the program error information of the application program 110.
The failure log information shown in this example has data items of a generation time 401, a class name 402, a message 403, and exception information 404.
The generation time 401 indicates the time when the generation processing by the failure log information generation unit 125 is performed.
The class name is a character string indicating the class name for which the fault log information output command in the application program 110 has been executed.
A message 403 is a character string representing a message including internal information of the application program 110.
The exception information 404 represents details of the exception information that has occurred.

次に、本実施の形態における詳細ログ情報保持領域129の詳細ログ情報の格納処理及び出力処理を図5〜図8のイメージを用いて説明する。
図5は、詳細ログ情報保持領域129における詳細ログ情報の格納処理を示すイメージ図である。
詳細ログ情報保持領域129は、図5〜8に示すように、配列の先端と末尾をつないで環状にした固定長のデータ構造で構成する。このデータ構造は、一般的にリングバッファと呼ばれる。
図5において、501は現在の詳細ログ情報格納位置となる詳細ログ情報要素を指し示す登録ポインタであり、502〜504は過去の詳細ログ情報格納位置となる詳細ログ情報要素を指し示す登録ポインタである。505は、登録ポインタ501の移動方向を示す矢印である。
506は詳細ログ情報要素に格納された詳細ログ情報を示し、507は格納される前の詳細ログ情報を示す。
508は詳細ログ情報が格納されていない詳細ログ情報要素を示し、509は詳細ログ情報が格納されている詳細ログ情報要素を示す。
本処理では、登録ポインタ501は、まず、ログ出力制御プログラム120の起動時に登録ポインタ503の位置に存在する。詳細ログ情報格納手段123は登録ポインタ501が指し示す詳細ログ情報要素に詳細ログ情報507を格納していく。
次に、登録ポインタ501は、詳細ログ情報格納手段123による詳細ログ情報507の格納に応じて、登録ポインタ502〜504に示すように、矢印505が示す方向に、各詳細ログ情報要素を順に指し示しながら移動していく。
Next, detailed log information storage processing and output processing of the detailed log information holding area 129 in the present embodiment will be described with reference to the images of FIGS.
FIG. 5 is an image diagram showing a storage process of detailed log information in the detailed log information holding area 129.
As shown in FIGS. 5 to 8, the detailed log information holding area 129 is configured with a fixed-length data structure in which the front end and the end of the array are connected to form a ring. This data structure is generally called a ring buffer.
In FIG. 5, reference numeral 501 denotes a registration pointer indicating a detailed log information element serving as a current detailed log information storage position, and reference numerals 502 to 504 indicate registration pointers indicating detailed log information elements serving as past detailed log information storage positions. Reference numeral 505 denotes an arrow indicating the moving direction of the registration pointer 501.
Reference numeral 506 denotes detailed log information stored in the detailed log information element, and reference numeral 507 denotes detailed log information before storage.
Reference numeral 508 denotes a detailed log information element in which detailed log information is not stored, and reference numeral 509 denotes a detailed log information element in which detailed log information is stored.
In this processing, the registration pointer 501 first exists at the position of the registration pointer 503 when the log output control program 120 is activated. The detailed log information storage unit 123 stores the detailed log information 507 in the detailed log information element indicated by the registration pointer 501.
Next, the registration pointer 501 sequentially points to each detail log information element in the direction indicated by the arrow 505 as indicated by the registration pointers 502 to 504 according to the storage of the detail log information 507 by the detail log information storage unit 123. While moving.

図6は、障害発生時における詳細ログ情報の出力処理を示すイメージ図である。
図6において、601は詳細ログ出力手段126によって出力要求がされた時点における登録ポインタを示す。
602〜605は詳細ログ出力手段126からの出力要求に応じて生成する出力ポインタであり、606は出力ポインタ601の移動方向を示す矢印である。
607は出力ポインタ601が指し示す詳細ログ情報要素に格納されていた詳細ログ情報であり、608は出力された詳細ログ情報である。
609は詳細ログ出力手段126によって出力要求がされた時点における登録ポインタの指し示す詳細ログ情報要素を示す障害発生ポインタであり、610は障害発生ポインタの指し示す詳細ログ情報要素に到達した出力ポインタである。
本処理では、詳細ログ出力手段126によって出力要求がされた時点で出力ポインタ602及び障害発生ポインタ609が生成され、矢印606に示す方向に各詳細ログ情報要素を順に指し示しながら移動していく。
次に、出力ポインタ603〜605に示すように、詳細ログ情報607が格納されている各詳細ログ情報要素に到達したときに、各詳細ログ情報608を順に出力していく。
最後に、出力ポインタ610に示すように、登録ポインタ601が指し示す各詳細ログ情報要素に到達すると出力処理を終了する。
FIG. 6 is an image diagram showing an output process of detailed log information when a failure occurs.
In FIG. 6, reference numeral 601 denotes a registration pointer at the time when the detailed log output means 126 makes an output request.
Reference numerals 602 to 605 denote output pointers generated in response to an output request from the detailed log output unit 126, and reference numeral 606 denotes an arrow indicating the moving direction of the output pointer 601.
607 is the detailed log information stored in the detailed log information element indicated by the output pointer 601, and 608 is the output detailed log information.
Reference numeral 609 denotes a failure occurrence pointer indicating the detailed log information element indicated by the registration pointer at the time when the output request is made by the detailed log output means 126, and reference numeral 610 denotes an output pointer that has reached the detailed log information element indicated by the failure occurrence pointer.
In this process, an output pointer 602 and a failure occurrence pointer 609 are generated at the time when an output request is made by the detailed log output means 126, and moves while sequentially pointing each detailed log information element in the direction indicated by the arrow 606.
Next, as indicated by the output pointers 603 to 605, when the detailed log information elements in which the detailed log information 607 is stored are reached, the detailed log information 608 is output in order.
Finally, as shown by the output pointer 610, when each detailed log information element pointed to by the registration pointer 601 is reached, the output process is terminated.

図7は、障害発生後における詳細ログ情報の格納方法を示すイメージ図である。
図7において、701は障害発生時に生成された障害発生ポインタを示し、702〜704は登録ポインタを示す。705は登録ポインタ702〜704の移動方向を表す矢印を示す。706は、障害発生後の詳細ログ情報の出力対象となる詳細ログ情報要素を示す。ここで詳細ログ情報の出力対象となる詳細ログ情報要素706は、予め上限値が設定されているものとし、本例では上限値が「4」に設定された場合を示す。
本処理では、登録ポインタ702〜704に示すように、障害発生ポインタ701の指し示す詳細ログ情報要素から順に矢印705の方向に、詳細ログ情報要素706に詳細ログ情報を格納していく。
FIG. 7 is an image diagram showing a method of storing detailed log information after a failure occurs.
In FIG. 7, reference numeral 701 denotes a failure occurrence pointer generated when a failure occurs, and reference numerals 702 to 704 denote registration pointers. Reference numeral 705 denotes an arrow indicating the moving direction of the registration pointers 702 to 704. Reference numeral 706 denotes a detailed log information element that is an output target of detailed log information after the occurrence of a failure. Here, the detailed log information element 706 that is the output target of the detailed log information is assumed to have an upper limit set in advance, and in this example, the upper limit is set to “4”.
In this processing, as indicated by the registration pointers 702 to 704, the detailed log information is stored in the detailed log information element 706 in the direction of the arrow 705 in order from the detailed log information element indicated by the failure occurrence pointer 701.

図8は、障害発生後における詳細ログ情報の出力方法を示すイメージ図である。
図8において、801は障害発生時に生成された障害発生ポインタを示し、802は障害発生ポインタ801の移動方向を表す矢印を示す。803は登録ポインタを示す。804は、障害発生後の詳細ログ情報の出力対象となる詳細ログ情報要素を示す。805は出力対象となった詳細ログ情報を示す。
本処理では、予め任意に指定された数の詳細ログ情報要素804の全てに詳細ログ情報が格納されたときに、矢印802に示す方向に登録ポインタ803の指し示す詳細ログ情報要素まで障害発生ポインタ801を移動していく。この際、障害発生ポインタ801移動に伴い、詳細ログ情報要素804に格納された詳細ログ情報805を順に出力し、登録ポインタ803の指し示す詳細ログ情報要素まで到達したときに、障害発生ポインタ801を削除する。
FIG. 8 is an image diagram showing a method for outputting detailed log information after the occurrence of a failure.
In FIG. 8, 801 indicates a failure occurrence pointer generated when a failure occurs, and 802 indicates an arrow indicating the movement direction of the failure occurrence pointer 801. Reference numeral 803 denotes a registration pointer. Reference numeral 804 denotes a detailed log information element that is an output target of detailed log information after the occurrence of a failure. Reference numeral 805 denotes detailed log information to be output.
In this processing, when the detailed log information is stored in all the arbitrarily specified number of detailed log information elements 804, the failure occurrence pointer 801 up to the detailed log information element indicated by the registration pointer 803 in the direction indicated by the arrow 802 is stored. Move on. At this time, along with the movement of the failure occurrence pointer 801, the detailed log information 805 stored in the detailed log information element 804 is sequentially output, and the failure occurrence pointer 801 is deleted when the detailed log information element indicated by the registration pointer 803 is reached. To do.

以上の各処理の詳細について、図9〜12のフローチャートを用いて説明する。
図9は、本実施の形態に係るコンピュータシステムが行う基本処理フローを示す図である。
まず、アプリケーションプログラム110を起動すると、アプリケーションプログラム110に定義された起動命令に応じてログ出力制御プログラム120を起動する(ステップ901)。
ログ出力制御プログラム120の詳細ログ情報格納手段123は、詳細ログ情報保持領域129における詳細ログ情報格納開始位置を指し示す登録ポインタを生成する(ステップ902)。
アプリケーションプログラム110は、定義された命令群を先頭から順に読み込んで実行していく(ステップ903)。
エラー発生判定手段112は、命令の実行に成功したか否かを判定し(ステップ904)、成功した場合には、次の命令を読み込む(ステップ905)。
読み込んだ命令が詳細ログ出力命令か否かを判定し(ステップ906)、詳細ログ出力命令の場合には、内部情報送信手段111が詳細ログ出力処理を実行して(ステップ907)、次の命令を読み込む(ステップ908)。詳細ログ出力処理では、アプリケーションプログラム110の内部情報として引数を指定して読み込んだ詳細ログ出力命令を実行し、ログ出力制御プログラム120で詳細ログ情報の生成と詳細ログ情報格納領域129への格納を実行する。詳細は図11のフローチャートで後述する。
一方、詳細ログ出力命令でない場合には、アプリケーションプログラム110の終了命令に到達したか否かを判定し(ステップ909)、到達した場合には処理を終了し、到達していない場合には命令の実行を繰り返す。
ステップ904において、ステップ903で命令が正しく実行されずにプログラムエラーが発生したと判定した場合には、アプリケーションプログラム110の制御をcatch節に移す(ステップ910)。ここで、命令の実行の失敗としては、例えば、図2に示すエラー発生命令220の引数232に数値を構成する文字列以外を指定し、プログラムエラーが発生した場合が対応する。
次に、プログラムエラー情報送信手段113が、catch節に定義された障害ログ出力処理を実行した後(ステップ911)、次の命令を読み込む(ステップ908)。障害ログ出力処理では、catch節に定義された障害ログ出力命令を実行し、障害ログ情報の生成と障害ログメッセージとして出力する処理を実行する。詳細は図12のフローチャートで後述する。
Details of each of the above processes will be described with reference to the flowcharts of FIGS.
FIG. 9 is a diagram showing a basic processing flow performed by the computer system according to the present embodiment.
First, when the application program 110 is activated, the log output control program 120 is activated according to the activation instruction defined in the application program 110 (step 901).
The detailed log information storage unit 123 of the log output control program 120 generates a registration pointer indicating the detailed log information storage start position in the detailed log information holding area 129 (step 902).
The application program 110 reads and executes the defined instruction group sequentially from the top (step 903).
The error occurrence determination means 112 determines whether or not the instruction has been successfully executed (step 904), and if successful, reads the next instruction (step 905).
It is determined whether or not the read command is a detailed log output command (step 906). If the read command is a detailed log output command, the internal information transmission unit 111 executes a detailed log output process (step 907), and the next command Is read (step 908). In the detailed log output process, a detailed log output instruction read by specifying an argument as internal information of the application program 110 is executed, and the log output control program 120 generates detailed log information and stores it in the detailed log information storage area 129. Execute. Details will be described later with reference to the flowchart of FIG.
On the other hand, if it is not a detailed log output command, it is determined whether or not the end command of the application program 110 has been reached (step 909). If it has been reached, the processing is terminated. Repeat execution.
In step 904, when it is determined in step 903 that the instruction is not correctly executed and a program error has occurred, the control of the application program 110 is transferred to the catch clause (step 910). Here, the instruction execution failure corresponds to, for example, a case where a program error occurs when a character string other than a character string is specified in the argument 232 of the error generation instruction 220 shown in FIG.
Next, the program error information transmission unit 113 executes the failure log output process defined in the catch clause (step 911), and then reads the next instruction (step 908). In the fault log output process, the fault log output command defined in the catch clause is executed, and the process of generating fault log information and outputting it as a fault log message is executed. Details will be described later with reference to the flowchart of FIG.

図10は、ステップ907の詳細ログ出力処理に対応したログ出力制御プログラム120の処理の詳細を示すフローチャートである。
まず、アプリケーションプログラム110の内部情報送信手段111によって送信された内部情報として引数の値を、内部情報受信手段121が受信する(ステップ1001)。
詳細ログ情報保持領域129に障害発生ポインタが存在するか否かを判定し(ステップ1002)、存在しない場合には、内部情報受信手段121が受信した内部情報を、詳細ログ情報生成手段122に送信し、内部情報から詳細ログ情報を生成する(ステップ1003)。詳細ログ情報の生成では、現在時刻,引数によって送信されたクラス名及び内部情報を含んだメッセージを各データ項目とする。
次に、詳細ログ情報格納手段123が、詳細ログ情報保持領域129において、登録ポインタの指し示す詳細ログ情報要素に、詳細ログ情報生成手段122の生成した詳細ログ情報を格納し(ステップ1004)、矢印に示す次の詳細ログ情報要素に登録ポインタを移動させて処理を終了する(ステップ1005)。
一方、詳細ログ情報保持領域129に障害発生ポインタが存在する場合には(ステップ1002)、詳細ログ情報要素カウンタ値を「1」増加させる(ステップ1006)。ここで、障害発生ポインタの生成については図12のフローチャートで説明する。
詳細ログ情報要素カウンタ値と、予め任意に指定された詳細ログ情報要素上限値(詳細ログ出力数)とを比較し(ステップ1007)、詳細ログ情報要素カウンタ値が詳細ログ情報要素上限値以下であれば、詳細ログ情報の生成,格納を行う(ステップ1003〜1005)。
一方、詳細ログ情報要素カウンタ値が詳細ログ情報要素上限値より大きい場合には、詳細ログ出力手段126が、障害発生ポインタの指し示す詳細ログ情報要素に格納された詳細ログ情報を出力し、ログメッセージ生成手段127が出力された詳細ログ情報を読み込み詳細ログメッセージを生成して、ログメッセージ出力手段128がログ記録装置130に出力する(ステップ1008)。
次に、障害発生ポインタが指し示す詳細ログ情報要素に格納された詳細ログ情報を削除し(ステップ1009)、障害発生ポインタを次の詳細ログ情報要素の位置に設定する(ステップ1010)。
障害発生ポインタが登録ポインタの指し示す詳細ログ情報要素に到達したか否かを判定し(ステップ1011)、到達した場合には障害発生ポインタを削除して(ステップ1012)、障害ログ情報要素カウンタ値を「0」に設定する(ステップ1013)。その後、詳細ログ情報の生成,格納を行う(ステップ1003〜1005)。
一方、障害発生ポインタが登録ポインタの指し示す詳細ログ情報要素に到達していない場合には、詳細ログ情報の出力等を繰り返す(ステップ1008〜1010)。
FIG. 10 is a flowchart showing details of the process of the log output control program 120 corresponding to the detailed log output process of step 907.
First, the internal information receiving unit 121 receives an argument value as internal information transmitted by the internal information transmitting unit 111 of the application program 110 (step 1001).
It is determined whether or not a failure occurrence pointer exists in the detailed log information holding area 129 (step 1002), and if it does not exist, the internal information received by the internal information receiving unit 121 is transmitted to the detailed log information generating unit 122. Then, detailed log information is generated from the internal information (step 1003). In the generation of detailed log information, a message including the current time, the class name transmitted by the argument, and internal information is used as each data item.
Next, the detailed log information storage unit 123 stores the detailed log information generated by the detailed log information generation unit 122 in the detailed log information element pointed to by the registration pointer in the detailed log information holding area 129 (step 1004). Then, the registration pointer is moved to the next detailed log information element shown in FIG.
On the other hand, when the failure occurrence pointer exists in the detailed log information holding area 129 (step 1002), the detailed log information element counter value is incremented by “1” (step 1006). Here, the generation of the failure occurrence pointer will be described with reference to the flowchart of FIG.
The detailed log information element counter value is compared with a detailed log information element upper limit value (detailed log output number) arbitrarily specified in advance (step 1007), and the detailed log information element counter value is less than or equal to the detailed log information element upper limit value. If there is, detailed log information is generated and stored (steps 1003 to 1005).
On the other hand, when the detailed log information element counter value is larger than the upper limit value of the detailed log information element, the detailed log output means 126 outputs the detailed log information stored in the detailed log information element pointed to by the failure occurrence pointer, and the log message The detailed log information output by the generation unit 127 is read to generate a detailed log message, and the log message output unit 128 outputs it to the log recording device 130 (step 1008).
Next, the detailed log information stored in the detailed log information element pointed to by the failure occurrence pointer is deleted (step 1009), and the failure occurrence pointer is set at the position of the next detailed log information element (step 1010).
It is determined whether or not the failure occurrence pointer has reached the detailed log information element indicated by the registration pointer (step 1011). If the failure occurrence pointer has reached, the failure occurrence pointer is deleted (step 1012), and the failure log information element counter value is obtained. It is set to “0” (step 1013). Thereafter, detailed log information is generated and stored (steps 1003 to 1005).
On the other hand, when the failure occurrence pointer has not reached the detailed log information element indicated by the registration pointer, the output of detailed log information and the like are repeated (steps 1008 to 1010).

図11は、ステップ911の障害ログ出力処理に対応したログ出力制御プログラム120の処理の詳細を示すフローチャートである。
まず、アプリケーションプログラム110のプログラムエラー情報送信手段113によって送信されたプログラムエラー情報としてのクラス名,メッセージ及び例外情報を、プログラムエラー情報受信手段124が受信して(ステップ1101)、詳細ログ出力手段126に通知する(ステップ1102)。
詳細ログ出力要求手段126は、詳細ログ情報保持領域129に出力ポインタを生成し、出力ポインタが指し示す位置を、登録ポインタが指し示す詳細ログ情報要素から一つ進めた位置の要素に設定する(ステップ1103)。
次に、出力ポインタが指し示す詳細ログ情報要素に格納された詳細ログ情報が存在するか否かを判定し(ステップ1104)、詳細ログ情報が存在しない場合には、出力ポインタが指し示す位置を次の詳細ログ情報要素に進めて(ステップ1105)、出力ポインタが登録ポインタの指し示す詳細ログ情報要素に到達したか否かを判定する(ステップ1106)。判定の結果、登録ポインタの指し示す詳細ログ情報要素に到達していない場合には、格納された詳細ログ情報が存在するか否かの判定を行う(ステップ1104)。
一方、ステップ1104において、詳細ログ情報要素に詳細ログ情報が存在する場合には、出力ポインタが指し示す詳細ログ情報要素に格納された詳細ログ情報を出力し、ログメッセージ生成手段127が出力された詳細ログ情報を読み込み、詳細ログメッセージを生成してログ記録装置130に出力する(ステップ1107)。
次に、出力ポインタが指し示す詳細ログ情報要素に格納された詳細ログ情報を削除し(ステップ1108)、出力ポインタを次の詳細ログ情報要素の位置に設定する(ステップ1109)。
出力ポインタが登録ポインタの指し示す詳細ログ情報要素に到達したか否かを判定し(ステップ1110)、到達した場合には障害発生ポインタを生成して、登録ポインタが指し示す詳細ログ情報要素の位置に設定し(ステップ1111)、障害ログ情報要素カウンタ値を「0」に設定する(ステップ1112)。
一方、障害発生ポインタが登録ポインタの指し示す詳細ログ情報要素に到達していない場合には、詳細ログ情報の出力等を繰り返す(ステップ1107〜1109)。
次に、障害ログ情報生成手段125は、プログラムエラー情報受信手段124の受信したプログラムエラー情報から障害ログ情報を生成する(ステップ1113)。ここで、障害ログ情報は、現在時刻と、障害ログ出力命令の引数として送信されたクラス名,メッセージ及び例外情報から取得した例外のメソッド呼び出しスタックの情報(Javaではスタックトレースと呼ばれる。)とで生成する。
ログメッセージ生成手段127は、障害ログ情報生成手段125が生成した障害ログ情報を読み込み、障害ログメッセージを生成してログ記録装置130に出力して処理を終了する(ステップ1114)。
FIG. 11 is a flowchart showing details of the processing of the log output control program 120 corresponding to the failure log output processing in step 911.
First, the program error information receiving unit 124 receives the class name, message, and exception information as the program error information transmitted by the program error information transmitting unit 113 of the application program 110 (step 1101), and the detailed log output unit 126. (Step 1102).
The detailed log output request unit 126 generates an output pointer in the detailed log information holding area 129, and sets the position pointed to by the output pointer to the element at the position advanced by one from the detailed log information element pointed to by the registration pointer (step 1103). ).
Next, it is determined whether or not the detailed log information stored in the detailed log information element pointed to by the output pointer exists (step 1104). If the detailed log information does not exist, the position indicated by the output pointer is The process proceeds to the detailed log information element (step 1105), and it is determined whether or not the output pointer has reached the detailed log information element indicated by the registration pointer (step 1106). As a result of the determination, if the detailed log information element pointed to by the registration pointer has not been reached, it is determined whether or not the stored detailed log information exists (step 1104).
On the other hand, if detailed log information exists in the detailed log information element in step 1104, the detailed log information stored in the detailed log information element pointed to by the output pointer is output, and the log message generating unit 127 outputs the details. The log information is read, a detailed log message is generated and output to the log recording device 130 (step 1107).
Next, the detailed log information stored in the detailed log information element pointed to by the output pointer is deleted (step 1108), and the output pointer is set to the position of the next detailed log information element (step 1109).
It is determined whether or not the output pointer has reached the detailed log information element pointed to by the registration pointer (step 1110). If the output pointer has arrived, a failure occurrence pointer is generated and set at the position of the detailed log information element pointed to by the registration pointer. (Step 1111), the failure log information element counter value is set to “0” (Step 1112).
On the other hand, when the failure occurrence pointer has not reached the detailed log information element indicated by the registration pointer, the output of detailed log information and the like are repeated (steps 1107 to 1109).
Next, the failure log information generation unit 125 generates failure log information from the program error information received by the program error information reception unit 124 (step 1113). Here, the failure log information includes the current time and information on the method call stack of the exception acquired from the class name, message, and exception information transmitted as an argument of the failure log output command (called stack trace in Java). Generate.
The log message generation unit 127 reads the failure log information generated by the failure log information generation unit 125, generates a failure log message, outputs it to the log recording device 130, and ends the process (step 1114).

図12は、図9〜11に示す処理の結果、ログ記録装置に出力された詳細ログメッセージ及び障害ログメッセージを記録したログファイルの一例を示す図である。
ログファイルの記録された各ログメッセージは、時刻1201,ログ種別1202,クラス名1203,ログメッセージ1204のデータを有する。
詳細ログメッセージ1205は、図3に示す詳細ログ情報を構成する生成時刻301と、ログ種別を示す[DEBUG]という文字列と、クラス名302と、メッセージ303とを「,」で連結して生成する。詳細ログメッセージ1205は、詳細ログ出力命令の実行によって生成された詳細ログ情報が詳細ログメッセージとして出力されたことを表し、エラー発生命令の実行直前のアプリケーションプログラム110の内部情報が出力されていることを示している。詳細ログメッセージ群1208は、エラー発生命令の実行直前までに詳細ログ情報保持領域129に格納された(詳細ログ情報要素数−1)個の詳細ログ情報が、詳細ログメッセージとして出力されたことを表す。
障害ログメッセージ1206は、図4に示す障害ログ情報を構成する生成時刻401と、ログ種別を示す[ERROR]という文字列と、クラス名402と、メッセージ403とを「,」で連結し、さらに改行して、例外情報404を付加して生成する。障害ログメッセージ1206は、障害ログ出力命令の実行によって出力された障害ログメッセージを表し、エラー発生命令の実行に失敗して、catch節に制御が移ったことを示している。障害ログメッセージ1206に含まれる例外メッセージ1207は、障害ログ情報に含まれる例外情報404に対応する。
詳細ログメッセージ1209は、詳細ログ出力命令の実行によって生成された詳細ログ情報が詳細ログメッセージとして出力されたことを表し、障害発生後の命令が正しく実行されていることを示している。障害発生後詳細ログメッセージ群1210は、障害ログメッセージ1206出力後、すなわちエラー発生命令の実行失敗後に、詳細ログ情報保持領域129に格納された(詳細ログ情報要素上限値)個の詳細ログ情報が、詳細ログメッセージとして出力されたことを表す。
ログメッセージ群1211は、障害ログメッセージ1207が示す障害とは別の障害が発生して、詳細ログメッセージと障害ログメッセージが出力されたことを表す。この場合、障害ログメッセージ1207が示す時刻"2005-02-23 17:49:43"に障害発生後、障害ログメッセージ1212が示す時刻"2005-02-23 18:59:02"まで障害が発生していないことを示す。
FIG. 12 is a diagram illustrating an example of a log file in which a detailed log message and a failure log message output to the log recording device as a result of the processing illustrated in FIGS. 9 to 11 are recorded.
Each log message recorded in the log file has data of time 1201, log type 1202, class name 1203, log message 1204.
The detailed log message 1205 is generated by concatenating the generation time 301 constituting the detailed log information shown in FIG. 3, the character string “DEBUG” indicating the log type, the class name 302, and the message 303 with “,”. To do. The detailed log message 1205 indicates that the detailed log information generated by the execution of the detailed log output command is output as the detailed log message, and the internal information of the application program 110 immediately before the execution of the error occurrence command is output. Is shown. The detailed log message group 1208 indicates that the detailed log information (number of detailed log information elements−1) pieces of detailed log information stored in the detailed log information holding area 129 immediately before the execution of the error occurrence instruction is output as the detailed log message. To express.
The failure log message 1206 is formed by concatenating the generation time 401 constituting the failure log information shown in FIG. 4, the character string “ERROR” indicating the log type, the class name 402, and the message 403 with “,”. It is generated by adding a new line and adding exception information 404. A failure log message 1206 represents a failure log message output by executing the failure log output command, and indicates that the execution of the error occurrence command has failed and control has been transferred to the catch clause. An exception message 1207 included in the failure log message 1206 corresponds to the exception information 404 included in the failure log information.
The detailed log message 1209 indicates that the detailed log information generated by the execution of the detailed log output command is output as the detailed log message, and indicates that the command after the occurrence of the failure is correctly executed. The detailed log message group 1210 after the occurrence of the failure includes (detail log information element upper limit value) pieces of detailed log information stored in the detailed log information holding area 129 after the output of the failure log message 1206, that is, after execution of the error occurrence instruction has failed. Indicates that it was output as a detailed log message.
The log message group 1211 indicates that a failure other than the failure indicated by the failure log message 1207 has occurred and a detailed log message and a failure log message have been output. In this case, after the failure occurs at the time “2005-02-23 17:49:43” indicated by the failure log message 1207, the failure occurs until the time “2005-02-23 18:59:02” indicated by the failure log message 1212. Indicates not.

以上の処理により、本実施の形態に係るログ出力制御装置では、障害発生時を基準とした一定範囲の詳細ログメッセージのみがログ記憶装置に記録されるため、ログ記憶装置に対して効率良くログメッセージを記憶させることが可能となる。
なお、本発明のログ出力制御装置における詳細ログ情報保持領域に格納された詳細ログ情報の出力形態としては、前記実施の形態に示すように、障害発生の前後の一定数の詳細ログを出力するものに限らず、例えば、障害発生の前後の一定期間の詳細ログ情報を出力することとしてもよい。
以下、本発明の第2実施の形態に係るログ出力制御装置として、障害発生の前後の一定期間の詳細ログ情報を出力する形態について説明する。
With the above processing, in the log output control device according to the present embodiment, only a detailed log message within a certain range based on the time of the failure is recorded in the log storage device. Messages can be stored.
As the output form of the detailed log information stored in the detailed log information holding area in the log output control device of the present invention, a fixed number of detailed logs before and after the occurrence of the failure are output as shown in the above embodiment. For example, detailed log information for a certain period before and after the occurrence of a failure may be output.
Hereinafter, a mode of outputting detailed log information for a certain period before and after the occurrence of a failure will be described as a log output control device according to a second embodiment of the present invention.

図13は、第2実施の形態に係るログ出力制御装置の詳細ログ情報保持領域129における詳細ログ情報格納処理を示すイメージ図である。
本実施の形態では、詳細ログ情報保持領域129を、配列の先端と末尾をつないで環状にした固定長のデータ構造で構成し、秒単位でバッファを利用している。
図13において、各詳細ログ情報要素1301には、1つの時刻情報を格納することができる。この時刻情報を詳細ログ情報時刻と呼ぶ。
詳細ログ情報リスト1302は、複数の詳細ログ情報を格納することができる可変長の配列で、リスト先頭からの詳細ログ情報の読み出しと、リストの末尾への詳細ログ情報の追加が可能なデータ構造を表す。線分1303は、詳細ログ情報要素1301が一つの詳細ログ情報リスト1302を保持していることを表している。
登録ポインタ1304は現在の詳細ログ情報格納位置となる詳細ログ情報要素を指し示し、登録ポインタ1305〜1307は過去の詳細ログ情報格納位置となる詳細ログ情報要素を指し示している。矢印1308は、登録ポインタの移動方向を示している。
詳細ログ情報1309は詳細ログ情報要素に格納されたものを示し、詳細ログ情報1310は詳細ログ情報要素に新たに格納されるものを示す。
本実施の形態では、登録ポインタ1304は、まず、ログ出力制御プログラム120の起動時には登録ポインタ1305の位置に存在する。次に、登録ポインタ1304は、詳細ログ情報格納手段123によって詳細ログ情報時刻が1秒ずつ加算される毎(1秒経過毎)に、登録ポインタ1305〜1307に示すように、矢印1308が示す方向に、各詳細ログ情報要素を順に指し示しながら移動していく。
詳細ログ情報1310は、登録ポインタ1304が指し示す詳細ログ情報要素が保持する詳細ログ情報リストの末尾に格納される。
FIG. 13 is an image diagram showing a detailed log information storage process in the detailed log information holding area 129 of the log output control apparatus according to the second embodiment.
In the present embodiment, the detailed log information holding area 129 is configured with a fixed-length data structure in which the leading end and the end of the array are connected and circular, and a buffer is used in units of seconds.
In FIG. 13, each detailed log information element 1301 can store one piece of time information. This time information is referred to as detailed log information time.
The detailed log information list 1302 is a variable-length array that can store a plurality of detailed log information, and has a data structure that allows the detailed log information to be read from the top of the list and the detailed log information to be added to the end of the list Represents. A line segment 1303 indicates that the detailed log information element 1301 holds one detailed log information list 1302.
The registration pointer 1304 points to the detailed log information element that is the current detailed log information storage position, and the registration pointers 1305 to 1307 point to the detailed log information element that is the past detailed log information storage position. An arrow 1308 indicates the moving direction of the registration pointer.
Detailed log information 1309 indicates information stored in the detailed log information element, and detailed log information 1310 indicates information newly stored in the detailed log information element.
In the present embodiment, the registration pointer 1304 is first located at the position of the registration pointer 1305 when the log output control program 120 is activated. Next, the registration pointer 1304 indicates the direction indicated by the arrow 1308 as indicated by the registration pointers 1305 to 1307 every time the detailed log information time is added by one second by the detailed log information storage unit 123 (every second has elapsed). Next, the detailed log information elements are moved in order.
The detailed log information 1310 is stored at the end of the detailed log information list held by the detailed log information element indicated by the registration pointer 1304.

以上の構成に基づき、本発明の第2実施の形態に係るログ出力制御装置の行う各処理についてフローチャートを用いて説明する。
本実施の形態に係るコンピュータシステムが行う基本処理は、図9のフローチャートに示す処理と略同様であるが、ステップ902の処理に加えて、現在時刻を取得し、取得した現在時刻を詳細ログ情報時刻として、登録ポインタの指し示す位置の詳細ログ情報要素に格納する処理を行う。なお、本実施例で扱う時刻の最小単位は秒とする。
Based on the above configuration, each process performed by the log output control apparatus according to the second embodiment of the present invention will be described using a flowchart.
The basic processing performed by the computer system according to the present embodiment is substantially the same as the processing shown in the flowchart of FIG. 9, but in addition to the processing in step 902, the current time is acquired and the acquired current time is used as the detailed log information. As the time, a process of storing in the detailed log information element at the position indicated by the registration pointer is performed. Note that the minimum unit of time handled in this embodiment is seconds.

図14は、図9のステップ907の詳細ログ出力処理に対応したログ出力制御プログラム120の処理の詳細を示すフローチャートである。
まず、アプリケーションプログラム110の内部情報送信手段111によって送信された内部情報として引数の値を、内部情報受信手段121が受信するとともに(ステップ1401)、現在時刻を取得する(ステップ1402)。
取得した現在時刻と、登録ポインタの指し示す詳細ログ情報要素の詳細ログ情報時刻とを比較し、両時刻が一致するか否かを判定する(ステップ1403)。
判定の結果、両時刻が一致する場合には、内部情報受信手段121が受信した内部情報を、詳細ログ情報生成手段122に送信し、内部情報から詳細ログ情報を生成する(ステップ1404)。
次に、詳細ログ情報格納手段123が、詳細ログ情報保持領域129において、登録ポインタの指し示す詳細ログ情報要素の詳細ログ情報リストの末尾に、詳細ログ情報生成手段122の生成した詳細ログ情報を格納して処理を終了する(ステップ1405)。
一方、ステップ1403において、両時刻が不一致の場合には、登録ポインタの指し示す詳細ログ情報要素の詳細ログ情報時刻を取得して、当該時刻に1秒加算し、次詳細ログ情報時刻を生成する(ステップ1406)。
次に、登録ポインタを次の詳細ログ情報要素に設定し(ステップ1407)、当該詳細ログ情報要素に、ステップ1406で生成した次詳細ログ情報時刻を設定するとともに(ステップ1408)、詳細ログ情報リストを空にする(ステップ1409)。
次に、詳細ログ情報保持領域129に障害発生ポインタが存在するか否かを判定し(ステップ1410)、障害発生ポインタが存在する場合には、詳細ログ情報要素カウンタ値を「1」増加させる(ステップ1411)。
詳細ログ情報要素カウンタ値と、予め任意に指定された詳細ログ情報要素上限値とを比較し(ステップ1412)、詳細ログ情報要素カウンタ値が詳細ログ情報要素上限値より大きい場合には、後述する詳細ログメッセージ出力処理を行う(ステップ1413)。
一方、ステップ1410で障害発生ポインタが存在すると判定した場合、ステップ1412で詳細ログ情報要素カウンタ値が詳細ログ情報要素上限値以下と判定した場合、または、ステップ1413で詳細ログメッセージ出力処理を行った後には、現在時刻と、登録ポインタの指し示す詳細ログ情報要素の詳細ログ情報時刻とを比較し、両時刻が一致するか否かを判定し(ステップ1414)、一致する場合には、詳細ログ情報の生成及び格納を行う(1404,1405)。一方、不一致の場合には、ステップ1406以降の処理を繰り返す。
FIG. 14 is a flowchart showing details of the processing of the log output control program 120 corresponding to the detailed log output processing in step 907 of FIG.
First, the internal information receiving unit 121 receives an argument value as internal information transmitted by the internal information transmitting unit 111 of the application program 110 (step 1401), and acquires the current time (step 1402).
The acquired current time is compared with the detailed log information time of the detailed log information element pointed to by the registration pointer, and it is determined whether or not the two times coincide (step 1403).
If both times match as a result of the determination, the internal information received by the internal information receiving means 121 is transmitted to the detailed log information generating means 122, and detailed log information is generated from the internal information (step 1404).
Next, the detailed log information storage unit 123 stores the detailed log information generated by the detailed log information generation unit 122 at the end of the detailed log information list of the detailed log information element indicated by the registration pointer in the detailed log information holding area 129. Then, the process ends (step 1405).
On the other hand, if the two times do not match in step 1403, the detailed log information time of the detailed log information element pointed to by the registration pointer is acquired and added to the time by 1 second to generate the next detailed log information time ( Step 1406).
Next, the registration pointer is set in the next detailed log information element (step 1407), the next detailed log information time generated in step 1406 is set in the detailed log information element (step 1408), and the detailed log information list Is emptied (step 1409).
Next, it is determined whether or not a failure occurrence pointer exists in the detailed log information holding area 129 (step 1410). If a failure occurrence pointer exists, the detailed log information element counter value is increased by “1” ( Step 1411).
The detailed log information element counter value is compared with the detailed log information element upper limit value arbitrarily specified in advance (step 1412), and when the detailed log information element counter value is larger than the detailed log information element upper limit value, it will be described later. Detailed log message output processing is performed (step 1413).
On the other hand, if it is determined in step 1410 that a failure occurrence pointer exists, if it is determined in step 1412 that the detailed log information element counter value is equal to or less than the detailed log information element upper limit value, or a detailed log message output process is performed in step 1413 Thereafter, the current time is compared with the detailed log information time of the detailed log information element pointed to by the registration pointer, and it is determined whether or not the two times match (step 1414). Are generated and stored (1404, 1405). On the other hand, if they do not match, the processing from step 1406 is repeated.

図15は、ステップ1413に示す詳細ログメッセージ出力処理の詳細を示すフローチャートである。
本処理では、まず、障害発生ポインタが指し示す詳細ログ情報要素の詳細ログ情報リストが空では無いか否かを判定し(ステップ1501)、空でない場合には、詳細ログ情報リストに格納された詳細ログ情報を出力し、ログメッセージ生成手段127が出力された詳細ログ情報を読み込み、詳細ログメッセージを生成してログ記録装置に出力する(ステップ1502)。
次に、障害発生ポインタが指し示す詳細ログ情報要素の詳細ログ情報リストを空にし(ステップ1503)、障害発生ポインタを次の詳細ログ情報要素の位置に設定する(ステップ1504)。
障害発生ポインタが登録ポインタの指し示す詳細ログ情報要素に到達したか否かを判定し(ステップ1505)、到達した場合には障害発生ポインタを削除して(ステップ1506)、詳細ログ情報要素カウンタ値を初期値の「1」に設定して処理を終了する(ステップ1507)。
一方、ステップ1505で、到達していない場合には、ステップ1501に戻り、処理を繰り返す。
FIG. 15 is a flowchart showing details of the detailed log message output process shown in step 1413.
In this process, first, it is determined whether or not the detailed log information list of the detailed log information element pointed to by the failure occurrence pointer is not empty (step 1501). If it is not empty, the details stored in the detailed log information list are determined. The log information is output, the detailed log information output by the log message generating means 127 is read, a detailed log message is generated and output to the log recording device (step 1502).
Next, the detailed log information list of the detailed log information element indicated by the failure occurrence pointer is emptied (step 1503), and the failure occurrence pointer is set at the position of the next detailed log information element (step 1504).
It is determined whether or not the failure occurrence pointer has reached the detailed log information element indicated by the registration pointer (step 1505). If the failure occurrence pointer has reached, the failure occurrence pointer is deleted (step 1506), and the detailed log information element counter value is obtained. The initial value is set to “1” and the process is terminated (step 1507).
On the other hand, if not reached in step 1505, the process returns to step 1501 to repeat the process.

図16は、図9のステップ911の障害ログ出力処理に対応したログ出力制御プログラム120の処理の詳細を示すフローチャートである。
まず、アプリケーションプログラム110のプログラムエラー情報送信手段113によって送信されたプログラムエラー情報としてのクラス名,メッセージ及び例外情報である引数の値を、プログラムエラー情報受信手段124が受信して(ステップ1601)、詳細ログ出力手段126に通知する(ステップ1602)。
詳細ログ出力要求手段126は、詳細ログ情報保持領域129に出力ポインタを生成し、出力ポインタが指し示す位置を、登録ポインタが指し示す詳細ログ情報要素から一つ進めた位置の要素に設定する(ステップ1603)。
次に、出力ポインタが指し示す詳細ログ情報要素の詳細ログ情報リストに格納された詳細ログ情報が存在するか否かを判定し(ステップ1604)、詳細ログ情報が存在しない場合には、出力ポインタが指し示す位置を次の詳細ログ情報要素に進めて(ステップ1605)、出力ポインタが登録ポインタの指し示す詳細ログ情報要素に到達したか否かを判定する(ステップ1606)。判定の結果、登録ポインタの指し示す詳細ログ情報要素に到達していない場合には、格納された詳細ログ情報が存在するか否かの判定を行う(ステップ1604)。
一方、ステップ1604において、詳細ログ情報要素の詳細ログ情報リストに格納された詳細ログ情報が存在する場合には、出力ポインタが指し示す詳細ログ情報要素の詳細ログ情報リストに格納された詳細ログ情報を出力し、ログメッセージ生成手段127が出力された詳細ログ情報を読み込み、詳細ログメッセージを生成してログ記録装置130に出力する(ステップ1607)。
次に、出力ポインタが指し示す詳細ログ情報要素の詳細ログ情報リストに格納された詳細ログ情報を削除し(ステップ1608)、出力ポインタを次の詳細ログ情報要素の位置に設定する(ステップ1609)。
出力ポインタが登録ポインタの指し示す詳細ログ情報要素に到達したか否かを判定し(ステップ1610)、到達した場合には障害発生ポインタを生成して、登録ポインタが指し示す詳細ログ情報要素の位置に設定し(ステップ1611)、障害ログ情報要素カウンタ値を「1」に設定する(ステップ1612)。
次に、障害ログ情報生成手段125は、プログラムエラー情報受信手段124の受信したプログラムエラー情報から障害ログ情報を生成する(ステップ1613)。
ログメッセージ生成手段127は、障害ログ情報生成手段125が生成した障害ログ情報を読み込み、障害ログメッセージを生成してログ記録装置130に出力して処理を終了する(ステップ1614)。
一方、出力ポインタが登録ポインタの指し示す詳細ログ情報要素に到達していない場合には、詳細ログ情報の出力等を繰り返す(ステップ1607〜1609)。
FIG. 16 is a flowchart showing details of the processing of the log output control program 120 corresponding to the failure log output processing in step 911 of FIG.
First, the program error information receiving unit 124 receives the class name, the message, and the argument value as exception information as the program error information transmitted by the program error information transmitting unit 113 of the application program 110 (step 1601). The detailed log output means 126 is notified (step 1602).
The detailed log output request unit 126 generates an output pointer in the detailed log information holding area 129, and sets the position pointed to by the output pointer to the element at the position advanced by one from the detailed log information element pointed to by the registration pointer (step 1603). ).
Next, it is determined whether or not the detailed log information stored in the detailed log information list of the detailed log information element indicated by the output pointer exists (step 1604). If the detailed log information does not exist, the output pointer is The position pointed to is advanced to the next detailed log information element (step 1605), and it is determined whether or not the output pointer has reached the detailed log information element pointed to by the registration pointer (step 1606). As a result of the determination, if the detailed log information element pointed to by the registration pointer has not been reached, it is determined whether or not the stored detailed log information exists (step 1604).
On the other hand, if there is detailed log information stored in the detailed log information list of the detailed log information element in step 1604, the detailed log information stored in the detailed log information list of the detailed log information element pointed to by the output pointer is displayed. The detailed log information output is read by the log message generation unit 127, and a detailed log message is generated and output to the log recording device 130 (step 1607).
Next, the detailed log information stored in the detailed log information list of the detailed log information element pointed to by the output pointer is deleted (step 1608), and the output pointer is set to the position of the next detailed log information element (step 1609).
It is determined whether or not the output pointer has reached the detailed log information element pointed to by the registration pointer (step 1610). If the output pointer has reached, a failure occurrence pointer is generated and set to the position of the detailed log information element pointed to by the registration pointer. (Step 1611), the failure log information element counter value is set to “1” (Step 1612).
Next, the failure log information generation unit 125 generates failure log information from the program error information received by the program error information reception unit 124 (step 1613).
The log message generation unit 127 reads the failure log information generated by the failure log information generation unit 125, generates a failure log message, outputs it to the log recording device 130, and ends the process (step 1614).
On the other hand, when the output pointer has not reached the detailed log information element indicated by the registration pointer, the output of the detailed log information is repeated (steps 1607 to 1609).

以上の処理により、本実施の形態に係るログ出力制御装置によっても、前記第1実施の形態に係るログ出力制御装置と同様に、障害発生時を基準とした一定範囲の詳細ログメッセージのみがログ記憶装置に記録されるため、ログ記憶装置に対して効率良くログメッセージを記憶させることが可能となる。
なお、本実施の形態に係るログ出力制御装置の詳細ログ情報保持領域の要素数,詳細ログ情報要素上限値は、本発明を適用するコンピュータシステムの性能等を考慮して、適宜決定するのが望ましい。
As a result of the above processing, the log output control apparatus according to the present embodiment also logs only the detailed log messages in a certain range based on the time of the failure, as in the log output control apparatus according to the first embodiment. Since it is recorded in the storage device, the log message can be efficiently stored in the log storage device.
Note that the number of elements in the detailed log information holding area and the upper limit value of the detailed log information element of the log output control apparatus according to this embodiment are appropriately determined in consideration of the performance of the computer system to which the present invention is applied. desirable.

本発明の一実施の形態に係るログ出力制御装置を構成するコンピュータシステムの概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the computer system which comprises the log output control apparatus which concerns on one embodiment of this invention. コンピュータシステムを構成するアプリケーションプログラムのソースコードの一例を示す図である。It is a figure which shows an example of the source code of the application program which comprises a computer system. 詳細ログ情報のデータ構造の一例を示す図である。It is a figure which shows an example of the data structure of detailed log information. 障害ログ情報のデータ構造の一例を示す図である。It is a figure which shows an example of the data structure of failure log information. 本発明の第1実施の形態に係る詳細ログ情報保持領域への詳細ログ情報の格納処理を示すイメージ図である。It is an image figure which shows the storage process of the detailed log information to the detailed log information holding area | region which concerns on 1st Embodiment of this invention. 障害発生時における本発明の第1実施の形態に係る詳細ログ情報保持領域からの詳細ログ情報の出力処理を示すイメージ図である。It is an image figure which shows the output process of the detailed log information from the detailed log information holding area | region which concerns on 1st Embodiment of this invention at the time of failure occurrence. 障害発生後における本発明の第1実施の形態に係る詳細ログ情報保持領域への詳細ログ情報の格納処理を示すイメージ図である。It is an image figure which shows the storage process of the detailed log information to the detailed log information holding area | region which concerns on 1st Embodiment of this invention after failure generate | occur | produces. 障害発生後における本発明の第1実施の形態に係る詳細ログ情報保持領域からの詳細ログ情報の出力処理を示すイメージ図である。It is an image figure which shows the output process of the detailed log information from the detailed log information holding area | region which concerns on 1st Embodiment of this invention after failure generate | occur | produces. 本発明の第1実施の形態に係るコンピュータシステムの行う基本処理を示すフローチャートである。It is a flowchart which shows the basic processing which the computer system which concerns on 1st Embodiment of this invention performs. 詳細ログ出力処理に対応したログ出力制御プログラムの処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of a process of the log output control program corresponding to a detailed log output process. 障害ログ出力処理に対応したログ出力制御プログラムの処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of a process of the log output control program corresponding to a failure log output process. ログ記憶装置に記録されるログファイルのデータ構造の一例を示す図である。It is a figure which shows an example of the data structure of the log file recorded on a log storage device. 本発明の第2実施の形態に係る詳細ログ情報保持領域への詳細ログ情報の格納処理を示すイメージ図である。It is an image figure which shows the storage process of the detailed log information to the detailed log information holding area | region which concerns on 2nd Embodiment of this invention. 本発明の第2実施の形態に係る詳細ログ出力処理に対応したログ出力制御プログラムの処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of a process of the log output control program corresponding to the detailed log output process which concerns on 2nd Embodiment of this invention. 詳細ログメッセージ出力処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of a detailed log message output process. 本発明の第2実施の形態に係る障害ログ出力処理に対応したログ出力制御プログラムの処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of a process of the log output control program corresponding to the failure log output process which concerns on 2nd Embodiment of this invention.

符号の説明Explanation of symbols

110 アプリケーションプログラム、111 内部情報送信手段、112 エラー情報判定手段、113 プログラムエラー情報送信手段、120 ログ出力制御プログラム、121 内部情報受信手段、122 詳細ログ情報生成手段、123 詳細ログ情報格納手段、124 プログラムエラー情報受信手段、125 障害ログ情報生成手段、126 詳細ログ出力要求手段、127 ログメッセージ生成手段、128 ログメッセージ出力手段、129 詳細ログ情報保持領域、130 ログ記憶装置。   110 Application program, 111 Internal information transmission means, 112 Error information determination means, 113 Program error information transmission means, 120 Log output control program, 121 Internal information reception means, 122 Detailed log information generation means, 123 Detailed log information storage means, 124 Program error information receiving means, 125 fault log information generating means, 126 detailed log output requesting means, 127 log message generating means, 128 log message output means, 129 detailed log information holding area, 130 log storage device.

Claims (6)

アプリケーションプログラムから出力された内部情報と、プログラムエラー情報とに基づき、ログメッセージを生成して記憶装置に記憶するログ出力制御装置において、
前記内部情報を一時記憶領域に格納する手段と、
前記プログラムエラー情報の受信時を基準とした任意の範囲の内部情報を前記一時記憶領域から取得して、前記ログメッセージを生成する手段と、
生成したログメッセージを前記記憶装置に記憶する手段とを備えることを特徴とするログ出力制御装置。
In a log output control device that generates a log message based on internal information output from an application program and program error information and stores it in a storage device,
Means for storing the internal information in a temporary storage area;
Means for acquiring internal information in an arbitrary range based on the reception time of the program error information from the temporary storage area, and generating the log message;
A log output control device comprising: means for storing the generated log message in the storage device.
前記任意の範囲の内部情報は、
前記プログラムエラー情報の受信時に格納された内部情報を基準とした前,後の所定数の内部情報を示すことを特徴とする請求項1に記載のログ出力制御装置。
The internal information of the arbitrary range is
2. The log output control apparatus according to claim 1, wherein a predetermined number of internal information before and after the internal information stored when the program error information is received is used as a reference.
前記任意の範囲の内部情報は、
前記プログラムエラー情報の受信時を基準とした前,後の所定時間内に格納された内部情報を示すことを特徴とする請求項1に記載のログ出力制御装置。
The internal information of the arbitrary range is
2. The log output control device according to claim 1, wherein the log output control device indicates internal information stored within a predetermined time before and after the time when the program error information is received.
アプリケーションプログラムから出力された内部情報と、プログラムエラー情報とに基づき、ログメッセージを生成して記憶装置に記憶する処理をコンピュータに実行させるログ出力制御プログラムにおいて、
前記内部情報を一時記憶領域に格納する処理と、
前記プログラムエラー情報の受信時を基準とした任意の範囲に格納された内部情報を前記一時記憶領域から取得して、前記ログメッセージを生成する処理と、
生成したログメッセージを前記記憶装置に記憶する処理と
を前記コンピュータに実行させることを特徴とするログ出力制御プログラム。
In a log output control program for causing a computer to execute a process of generating a log message and storing it in a storage device based on internal information output from an application program and program error information,
Processing for storing the internal information in a temporary storage area;
Processing for acquiring internal information stored in an arbitrary range based on the reception time of the program error information from the temporary storage area and generating the log message;
A log output control program that causes the computer to execute a process of storing a generated log message in the storage device.
前記任意の範囲の内部情報は、
前記プログラムエラー情報の受信時に格納された内部情報を基準とした前,後の所定数の内部情報を示すことを特徴とする請求項4に記載のログ出力制御プログラム。
The internal information of the arbitrary range is
5. The log output control program according to claim 4, wherein the log output control program indicates a predetermined number of internal information before and after the internal information stored when the program error information is received.
前記任意の範囲の内部情報は、
前記プログラムエラー情報の受信時を基準とした前,後の所定時間内に格納された内部情報を示すことを特徴とする請求項4に記載のログ出力制御プログラム。



The internal information of the arbitrary range is
5. The log output control program according to claim 4, wherein the log output control program indicates internal information stored within a predetermined time before and after the time when the program error information is received.



JP2005239382A 2005-08-22 2005-08-22 Log output controller and log output control program Pending JP2007058265A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005239382A JP2007058265A (en) 2005-08-22 2005-08-22 Log output controller and log output control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005239382A JP2007058265A (en) 2005-08-22 2005-08-22 Log output controller and log output control program

Publications (1)

Publication Number Publication Date
JP2007058265A true JP2007058265A (en) 2007-03-08

Family

ID=37921755

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005239382A Pending JP2007058265A (en) 2005-08-22 2005-08-22 Log output controller and log output control program

Country Status (1)

Country Link
JP (1) JP2007058265A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008226017A (en) * 2007-03-14 2008-09-25 Ns Solutions Corp Log information generation device and method, log information management device and method, and log information management method and program
WO2012111167A1 (en) * 2011-02-14 2012-08-23 株式会社日立製作所 Trace information acquisition method, computer system, and program
JP2013191070A (en) * 2012-03-14 2013-09-26 Nomura Research Institute Ltd Monitoring device
JP2017208037A (en) * 2016-05-20 2017-11-24 Necフィールディング株式会社 Monitoring device, information monitoring system, monitoring device control method, and program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0573366A (en) * 1991-09-12 1993-03-26 Nec Corp Detecting/editing/output system for abnormal trace data
JPH11296480A (en) * 1998-04-06 1999-10-29 Hitachi Ltd Remote fault monitoring system
JP2002078200A (en) * 2000-08-22 2002-03-15 Toshiba Corp Monitor control device and memory medium
JP2002215431A (en) * 2001-01-16 2002-08-02 Toshiba Corp Information processor and method of outputting trace log information

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0573366A (en) * 1991-09-12 1993-03-26 Nec Corp Detecting/editing/output system for abnormal trace data
JPH11296480A (en) * 1998-04-06 1999-10-29 Hitachi Ltd Remote fault monitoring system
JP2002078200A (en) * 2000-08-22 2002-03-15 Toshiba Corp Monitor control device and memory medium
JP2002215431A (en) * 2001-01-16 2002-08-02 Toshiba Corp Information processor and method of outputting trace log information

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008226017A (en) * 2007-03-14 2008-09-25 Ns Solutions Corp Log information generation device and method, log information management device and method, and log information management method and program
WO2012111167A1 (en) * 2011-02-14 2012-08-23 株式会社日立製作所 Trace information acquisition method, computer system, and program
JP2013191070A (en) * 2012-03-14 2013-09-26 Nomura Research Institute Ltd Monitoring device
JP2017208037A (en) * 2016-05-20 2017-11-24 Necフィールディング株式会社 Monitoring device, information monitoring system, monitoring device control method, and program

Similar Documents

Publication Publication Date Title
CN108196915B (en) Code processing method and device based on application container engine and storage medium
US8949788B2 (en) Building and packaging software
CN101681280B (en) In-process debugging using external debugging infrastructure
US8458681B1 (en) Method and system for optimizing the object code of a program
US7926040B2 (en) Method and system for timing code execution in a korn shell script
CN110765204B (en) Method and device for processing incremental synchronous abnormal interrupt condition
CN112099880B (en) Method and system for reducing application program driven by scene
JP2007058265A (en) Log output controller and log output control program
US20120304026A1 (en) Separation of error information from error propagation information
US6240529B1 (en) Debugging method and debugging apparatus for microcomputer system and recording medium on which debug program is recorded
JP2009258985A (en) Information processor and error correction method
JP2009110318A (en) Fault information output control device and fault information output control method used therefor, and program thereof
US7437705B1 (en) System and method for building an application on a computing device which includes an environment-controlling process
US20180373512A1 (en) Method and device for simulating synchronous blocking in asynchronous environment, storage medium, server and terminal
JP2018160009A (en) Failure information processing program, computer, failure notification method, and computer system
US8171345B2 (en) Disablement of an exception generating operation of a client system
CN115150464B (en) Application proxy method, device, equipment and medium
CN111581088B (en) Spark-based SQL program debugging method, device, equipment and storage medium
CN114238220A (en) File monitoring system
CN112416735A (en) Application program detection method and device, terminal equipment and storage medium
CN112148299A (en) Byte code object copying method, device, equipment and storage medium
US8756574B2 (en) Using reverse time for coverage analysis
CN112558975B (en) Method and device for switching codes of components, electronic equipment and readable storage medium
US8839207B2 (en) Debugging extensible markup language
AU776882B2 (en) Generating optimized computer data field conversion routines

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080110

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20091126

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100610

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20101013