JPH07248943A - Log record management device - Google Patents

Log record management device

Info

Publication number
JPH07248943A
JPH07248943A JP6037414A JP3741494A JPH07248943A JP H07248943 A JPH07248943 A JP H07248943A JP 6037414 A JP6037414 A JP 6037414A JP 3741494 A JP3741494 A JP 3741494A JP H07248943 A JPH07248943 A JP H07248943A
Authority
JP
Japan
Prior art keywords
log
target
output
information
processes
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
JP6037414A
Other languages
Japanese (ja)
Inventor
Toshihiro Morita
利広 森田
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP6037414A priority Critical patent/JPH07248943A/en
Publication of JPH07248943A publication Critical patent/JPH07248943A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To switch a log on and off at an optional point of time during collection of logs and to evade the decceleration of the processing speed of target processes even if the logs are collected by operating a log collection device under processes different from the target processes. CONSTITUTION:A command information output part 4 sends command information to the respective target processes 5 and 6 and a log information collection part. The log information collection part outputs the command information received from the command information output part 4 to an output log file by utilizing the free time of the target processes 5 and 6. Also, log information received from a log information output part 7 is outputted to the output log file by utilizing the free time of the target processes 5 and 6. In such a manner, since the target processes and the log collection device are operated respectively in the different processes and output to the log file is performed by utilizing the free time of a target process processing, even when log output is performed, the processing speed of the target processes is not deccelerated so much compared to the case of performing the log output.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は,マルチプロセス環境
下におけるログ記録管理方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a log recording management system under a multi-process environment.

【0002】[0002]

【従来の技術】プログラムの実行中における,データの
内容やプログラムの実行状況をログファイルへ出力する
ことは,従来より行なわれている。例えば,特開平3−
3046号公報には,データベースのトランザクション
処理において交信データの情報をログファイルに記録す
る方式が開示されている。プログラムの開発時において
は,障害の発見,修正,及び動作の確認などにログの収
集が有効である(第1の方式)。
2. Description of the Related Art Outputting the contents of data and the execution status of a program to a log file during execution of the program has been conventionally performed. For example, JP-A-3-
Japanese Patent Publication No. 3046 discloses a method of recording communication data information in a log file in database transaction processing. At the time of program development, log collection is effective for detecting and correcting failures and confirming operation (first method).

【0003】また,特開平5−61732号公報に,ロ
グを収集しても,収集しない場合と比較して実行速度が
あまり変化しない方式が開示されている(第2の方
式)。
Further, Japanese Patent Laid-Open No. 5-61732 discloses a method in which the execution speed does not change much compared to the case where the logs are not collected (second method).

【0004】更に,ログを出力した状態で長時間ターゲ
ットプロセスを実行すると,そのログの量は膨大にな
る。このため,ログファイル中のどの部分が利用者のど
の操作に対応しているかがわかりづらい。更に,例えば
ターゲットプロセスの障害に対する修正を行なった場合
には,先程と全く同じ操作を行なってログをとり,その
内容を比較したくなることがある。この時,入力操作の
内容が複雑であると,同じ操作を繰返し再現することは
困難である。そこで,ターゲットプロセスに対する入力
操作の再現を自動化することが望まれる。自動的にター
ゲットプロセスを操作してテストを行なう方式として,
例えば特開平5−61710号公報に開示されている
(第3の方式)。
Further, if the target process is executed for a long time while the log is output, the amount of the log will be huge. Therefore, it is difficult to know which part of the log file corresponds to which operation of the user. Further, for example, when a failure of the target process is corrected, it may be desired to perform the exact same operation as described above, log, and compare the contents. At this time, if the content of the input operation is complicated, it is difficult to reproduce the same operation repeatedly. Therefore, it is desirable to automate the reproduction of input operations for the target process. As a method to automatically operate the target process and test,
For example, it is disclosed in Japanese Patent Laid-Open No. 5-61710 (third method).

【0005】[0005]

【発明が解決しようとする課題】しかしながら,このよ
うなログ記録管理方式の第1の方式では,ログを収集す
ることにより,ログファイルの出力に時間がかかり,タ
ーゲットプロセスの実行速度が低下してしまう。又,ロ
グのオン/オフを切替るためには,ソースプログラムを
再コンパイル,リンクし直さなくてはならない。これら
の理由により,ログの収集がしづらいという問題があっ
た。
However, in the first method of such log recording management method, by collecting the logs, it takes a long time to output the log file and the execution speed of the target process decreases. I will end up. Also, in order to switch logging on / off, the source program must be recompiled and linked again. For these reasons, there was a problem that it was difficult to collect logs.

【0006】また,第2の方式ではターゲットプロセス
にリンクされた各ライブラリが直接ログをファイルに出
力する。このため,ログ出力の頻度が多い処理部分ほど
ファイル出力の頻度も増加し,ターゲット処理の空き時
間を有効に活用しづらく,又,プロセスごとにログのオ
ン/オフを切替る手段が提供されていない等の問題があ
った。
In the second method, each library linked to the target process directly outputs the log to a file. For this reason, the more frequently the log is output, the more frequently the file is output, which makes it difficult to effectively use the free time of the target process, and a means for switching the log on / off for each process is provided. There was a problem such as no.

【0007】更に,第3の方式では,ターゲットプロセ
スに対する入力操作のデータを予め別に作成しておく必
要がある。このデータの作成はターゲットプロセスの操
作とは別個に行なわれる。よって,ターゲットプロセス
を実際に使用しているときに発生する障害に対応しづら
いという問題があった。
Further, in the third method, it is necessary to separately prepare the data of the input operation for the target process. The creation of this data is done separately from the operation of the target process. Therefore, there is a problem that it is difficult to deal with failures that occur when the target process is actually used.

【0008】この発明は,上記問題点に鑑みてなされた
ものであり,ログ収集装置をターゲットプロセスと別プ
ロセスとすることにより,ログ収集中の任意の時点でロ
グのオン/オフの切替を行ない,かつログ収集を行なっ
てもターゲットプロセスの処理速度の低下を回避するこ
とを目的とする。
The present invention has been made in view of the above problems, and by setting the log collecting device as a process different from the target process, the log is switched on / off at an arbitrary point during log collection. In addition, the purpose is to avoid a decrease in the processing speed of the target process even if logs are collected.

【0009】又,ターゲットプロセスに対する入力操作
をログ情報とともに保存し,これをもとにターゲットプ
ロセスを自動的に再実行することにより,障害の再現や
修正の確認を自動化し,もって開発,保守の効率を向上
させることを目的とする。
Further, the input operation to the target process is saved together with the log information, and the target process is automatically re-executed based on this, thereby automating the reproduction of the fault and the confirmation of the correction, which leads to the development and maintenance. The purpose is to improve efficiency.

【0010】[0010]

【課題を解決するための手段】この発明は上記目的を達
成するため,マルチプロセス環境下で,1又は複数のタ
ーゲットプロセスのログを収集するログ記録管理装置に
おいて,ターゲットプロセスと別のプロセスで動作し,
ターゲットプロセスの処理の空き時間を用いて,ログを
収集するものである。
In order to achieve the above object, the present invention operates in a process different from a target process in a log recording management apparatus that collects logs of one or a plurality of target processes under a multi-process environment. Then
It collects logs by using the free time of processing of the target process.

【0011】また,ターゲットプロセスにリンクされる
ログ出力ライブラリがログを収集するための装置の活動
を検出し,検出結果に基づいてログの収集のオン/オフ
を切替るとよい。
Further, it is preferable that the log output library linked to the target process detects the activity of the device for collecting the log and switches the log collection on / off based on the detection result.

【0012】また,ターゲットプロセスをログ収集中の
任意の時点で選択するとよい。
The target process may be selected at any point during log collection.

【0013】更に,ターゲットプロセスに対する利用者
の入力操作をログの情報とともに保存するとなおよい。
Furthermore, it is more preferable to save the user's input operation to the target process together with the log information.

【0014】更にまた,保存した情報を読み出して前記
ターゲットプロセスに与え,ターゲットプロセスを再実
行させるとなおよい。
Furthermore, it is more preferable that the stored information is read out, given to the target process, and the target process is re-executed.

【0015】[0015]

【実施例】以下,この発明の実施例を図面に基づいて具
体的に説明する。図1は本発明のブロック図の一例であ
る。1は入力部であり,ここで入力されたキーやマウス
等の情報は全てコマンド情報出力部4に渡される。2は
入力ログファイルであり,入力部1のかわりにコマンド
入力元として用いられる。入力ログファイル2によって
ターゲットプロセス5,6の自動実行を行なうためのも
のである。3は入力元選択部であり,コマンド入力元と
しての入力部1と入力ログファイル2のいづれかを選択
するためのものである。4はコマンド情報出力部であ
り,入力部1又は入力ログファイル2から,ターゲット
プロセス5,6を動作させるコマンドを取得し,それを
適切なターゲットプロセス5,6とログ情報収集部10
へ送るためのものである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of the present invention will be specifically described below with reference to the drawings. FIG. 1 is an example of a block diagram of the present invention. Reference numeral 1 denotes an input unit, and all information of the keys, mouse, etc. input here is passed to the command information output unit 4. An input log file 2 is used as a command input source instead of the input unit 1. The input log file 2 is for automatically executing the target processes 5 and 6. An input source selection unit 3 is for selecting either the input unit 1 as the command input source or the input log file 2. A command information output unit 4 acquires a command for operating the target processes 5 and 6 from the input unit 1 or the input log file 2 and outputs the command to an appropriate target process 5 and 6 and the log information collection unit 10.
It is for sending to.

【0016】7はログ情報出力部であり,ライブラリと
してターゲットプロセス5,6に結合されている。ログ
情報出力部7は,ターゲットプロセス5,6のログ命令
を受けてログ情報を作成し,それを共用メモリ8に格納
し,ログ情報収集部10へメッセージを送るためのもの
である。但し,この時ログ収集装置が活動中でなけれ
ば,ログ情報の作成及びメッセージの送信は行なわな
い。共用メモリ8は,プロセス間で共用できるメモリ空
間である。9はログ収集装置検出部であり,ログ収集装
置が現在活動中か否かを検出するためのものである。1
0はログ情報収集部であり,ログ情報とコマンド情報と
を収集し,出力ログファイル12へ出力するためのもの
である。11はターゲットプロセス選択部であり,出力
ログファイルへ出力するターゲットプロセス5,6を1
又は複数選択する。12は出力ログファイルであり,各
ターゲットプロセス5,6のログ情報とコマンド情報が
格納されるものである。出力ログファイルの結果を入力
ログファイル2として再び利用することにより,ターゲ
ットプロセス5,6の自動実行を行なうことためのもの
である。
Reference numeral 7 is a log information output unit, which is connected to the target processes 5 and 6 as a library. The log information output unit 7 is for receiving log commands from the target processes 5 and 6 to create log information, storing the log information in the shared memory 8, and sending a message to the log information collecting unit 10. However, if the log collection device is not active at this time, neither log information is created nor messages are sent. The shared memory 8 is a memory space that can be shared between processes. Reference numeral 9 denotes a log collection device detection unit for detecting whether or not the log collection device is currently active. 1
Reference numeral 0 is a log information collecting unit, which collects log information and command information and outputs them to the output log file 12. Reference numeral 11 is a target process selection unit, which sets the target processes 5 and 6 to be output to the output log file as 1
Or, select multiple items. An output log file 12 stores the log information and command information of each target process 5 and 6. By using the result of the output log file again as the input log file 2, the target processes 5 and 6 are automatically executed.

【0017】次に,本発明の全体の流れを示すフロー図
の一例を図2に示す。(a)はログ収集装置13,
(b)はターゲットプロセス5,6,及び,ログ出力ラ
イブラリ14の処理をそれぞれ示している。S21にお
いて,ログ収集装置13が取得したメッセージの種類を
調べ,その種類によりコマンド出力処理(S22)か,
コマンド情報収集処理(S23)か,ログ情報収集処理
(S24)かの各処理へ分岐する。S22においては,
コマンド情報出力部の処理を行なう。そして,コマンド
情報を各ターゲットプロセス5,6とログ情報収集部1
0へ送る。S23及びS24においては,ログ情報収集
部の処理を行なう。S23では,コマンド情報出力部4
から受け取ったコマンド情報を,ターゲットプロセス
5,6の空き時間を利用して,出力ログファイル12へ
出力する。S24においては,ログ情報出力部7から受
け取ったログ情報をターゲットプロセス5,6の空き時
間を利用して,出力ログファイル12へ出力する。
Next, FIG. 2 shows an example of a flow chart showing the overall flow of the present invention. (A) is a log collection device 13,
(B) shows the processes of the target processes 5, 6, and the log output library 14, respectively. In S21, the type of message acquired by the log collection device 13 is checked, and depending on the type, command output processing (S22),
The process branches to the command information collection process (S23) or the log information collection process (S24). In S22,
The command information output section is processed. Then, the command information is sent to each of the target processes 5 and 6 and the log information collecting unit 1.
Send to 0. In S23 and S24, the process of the log information collecting unit is performed. In S23, the command information output unit 4
The command information received from is output to the output log file 12 using the free time of the target processes 5 and 6. In S24, the log information received from the log information output unit 7 is output to the output log file 12 using the free time of the target processes 5 and 6.

【0018】S25においては,各ターゲットプロセス
5,6の処理を行なう。S26においては,ターゲット
プロセス5,6中でログ出力命令が実行された否かを調
べる。S27とS28においては,ログ情報出力部7の
処理を行なう。S27においては,ログ出力命令を受け
てログ情報を作成し,これをログ情報収集部10へ送
る。S28においては,ターゲットプロセル5,6の処
理が空いているか否かを調べる。もし,処理が空いてい
れば,ログ収集装置13側へCPUの制御を渡す。そう
でなければ,ただちにターゲットプロセス5,6に処理
を戻す。
In S25, the processes of the target processes 5 and 6 are performed. In S26, it is checked whether or not the log output instruction is executed in the target processes 5 and 6. In S27 and S28, the process of the log information output unit 7 is performed. In S27, the log output command is received, log information is created, and this is sent to the log information collection unit 10. In S28, it is checked whether or not the processing of the target process cells 5 and 6 is free. If the processing is idle, the control of the CPU is passed to the log collection device 13 side. If not, the process is immediately returned to the target processes 5 and 6.

【0019】次に,ログ情報出力部7のプロセス切替処
理部の処理を示すフロー図の一例を図3に示す。ターゲ
ットプロセス5,6でログ出力命令が実行されると,ロ
グ情報出力部7がログ情報を作成し,これをログ管理装
置13側へ送る。この時,S31において,共用メモリ
8が満杯か否かを調べる。ここで,共用メモリ8が満杯
であれば,S32において,ログ情報収集部10へCP
Uの制御を渡す。これにより,共用メモリ8の中のログ
情報が出力ログファイル12へ出力される。ここで,共
用メモリ8が満杯でなければ,S33において,ターゲ
ットプロセス5,6への入力メッセージがあるか否かを
調べる。ここで,メッセージがあれば,ターゲットプロ
セス5,6の処理を優先させるため,S34において,
ターゲットプロセス5,6への制御を戻し,ログ情報出
力部7の処理を終了する。
Next, FIG. 3 shows an example of a flow chart showing the processing of the process switching processing section of the log information output section 7. When the log output command is executed in the target processes 5 and 6, the log information output unit 7 creates log information and sends it to the log management device 13 side. At this time, in S31, it is checked whether the shared memory 8 is full. Here, if the shared memory 8 is full, the log information collection unit 10 is sent to the CP in S32.
Pass control of U. As a result, the log information in the shared memory 8 is output to the output log file 12. Here, if the shared memory 8 is not full, it is checked in S33 whether there is an input message to the target processes 5 and 6. If there is a message, in order to give priority to the processing of the target processes 5 and 6, in S34,
The control to the target processes 5 and 6 is returned, and the processing of the log information output unit 7 ends.

【0020】次に,ログ情報出力部7の処理を示すフロ
ー図の一例を図4に示す。ターゲットプロセス5,6で
ログ出力命令が実行されると,ログ情報出力部7が呼び
出される。そして,S41において,ログ収集装置検出
部9を呼び出す。次に,S42において,ログ収集装置
13が活動中か否かを検出する。ここで,ログ収集装置
13が活動中であれば,S43において,ログ情報出力
部7においてログ情報を作成する。作成したログ情報
は,S44において,共用メモリ8へ格納する。その
後,S45において,ログ情報を表すメッセージをログ
情報収集部10へ送る。
Next, an example of a flow chart showing the processing of the log information output unit 7 is shown in FIG. When the log output command is executed in the target processes 5 and 6, the log information output unit 7 is called. Then, in S41, the log collection device detection unit 9 is called. Next, in S42, it is detected whether the log collection device 13 is active. If the log collecting apparatus 13 is active, the log information output unit 7 creates log information in S43. The created log information is stored in the shared memory 8 in S44. Then, in S45, a message representing the log information is sent to the log information collection unit 10.

【0021】S42において,ログ収集装置13が活動
中でなければ,S43からS45までの処理を行なわ
ず,直ちにターゲットプロセス5,6へ制御を戻す。
In S42, if the log collecting apparatus 13 is not active, the process from S43 to S45 is not performed, and control is immediately returned to the target processes 5 and 6.

【0022】次に,ログ情報収集部10の処理を示すフ
ロー図の一例を図5に示す。まず,S51において,ロ
グ情報出力部7からのメッセージを受け取る。次に,S
52において,メッセージの有無を調べる。ここで,メ
ッセージがあれば,ログ情報を取得して出力ログファイ
ル12へ出力する。S53において,ターゲットプロセ
ス選択部11から,ログを出力するターゲットプロセス
5,6の中でログを出力するターゲットプロセスを得
る。S54において,メッセージの送信元ターゲットプ
ロセスがターゲットプロセス選択部11により選択され
ているのかを調べる。ここで,選択されていれば,S5
5において,共用メモリ8からログ情報を取得し,S5
6において,ログ情報を出力ログファイル12へ出力す
る。その後,S57において,ログ情報を破棄して,終
了する。
Next, an example of a flow chart showing the processing of the log information collecting unit 10 is shown in FIG. First, in S51, a message from the log information output unit 7 is received. Next, S
At 52, the presence or absence of a message is checked. If there is a message, the log information is acquired and output to the output log file 12. In step S53, the target process selecting unit 11 obtains the log output target process among the log output target processes 5 and 6. In S54, it is checked whether the target process of the message transmission source has been selected by the target process selection unit 11. Here, if selected, S5
5, the log information is acquired from the shared memory 8 and S5
In 6, the log information is output to the output log file 12. Then, in S57, the log information is discarded and the process ends.

【0023】S54において,ターゲットプロセス選択
部11により選択されていないターゲットプロセスから
メッセージを受け取った場合は,出力ログファイル12
への出力は行なわず,そのままログ情報を破棄する(S
57)。
If a message is received from the target process not selected by the target process selection unit 11 in S54, the output log file 12
Is not output to, and the log information is discarded as it is (S
57).

【0024】共用メモリ8の中,及び,出力ログファイ
ル12の中のログ情報の一例を図6に示す。ログ情報
は,ログ情報を表す記号61,ターゲットID62,ロ
グ出力命令から渡されたログ内容63の3つの部分から
なる。
An example of log information in the shared memory 8 and the output log file 12 is shown in FIG. The log information is composed of three parts: a symbol 61 representing the log information, a target ID 62, and a log content 63 passed from the log output command.

【0025】次に,ログ情報収集部10におけるコマン
ド情報収集の処理を示すフロー図の一例を図7に示す。
まず,S71において,コマンド情報出力部4からメッ
セージを受け取る。ここで受け取るメッセージは,利用
者がターゲットプロセス5,6に対して入力したマウ
ス,キー,メニュー選択等の操作である。次に,S72
において,メッセージの有無を調べる。ここで,メッセ
ージがあれば,S74において,コマンド情報を出力ロ
グファイル12へ出力する。その後,S75において,
コマンド情報を破棄して,終了する。S72において,
メッセージがない場合は,そのまま,終了する。
Next, FIG. 7 shows an example of a flow chart showing a process of collecting command information in the log information collecting unit 10.
First, in S71, a message is received from the command information output unit 4. The message received here is an operation such as a mouse, a key, or a menu selection that the user has input to the target processes 5 and 6. Next, S72
At, check for the presence of a message. If there is a message, the command information is output to the output log file 12 in S74. Then, in S75,
Discard the command information and terminate. In S72,
If there is no message, the process ends as it is.

【0026】出力ログファイル12の中のコマンド情報
の一例を図8に示す。コマンド情報は,コマンド情報を
表す記号81,ターゲットID82,コマンドの種類を
表すメッセージ83,パラメータ値84の4つの部分か
らなる。
FIG. 8 shows an example of command information in the output log file 12. The command information consists of four parts: a symbol 81 indicating the command information, a target ID 82, a message 83 indicating the type of command, and a parameter value 84.

【0027】次に,コマンド情報出力部4におけるコマ
ンド情報出力の処理を示すフロー図の一例を図7に示
す。まず,S91において,ターゲットプロセス5,6
を動作させるメッセージの入力元を決定する。入力元と
して,入力部1と入力ログファイル2のいずれかを選択
することができる。S92において,入力先が入力部1
と入力ログファイル2のどちらであるかを調べる。ここ
で,入力先が入力部1である場合,S93において,入
力部1からメッセージを受け取る。一方,入力先が入力
ログファイル2である場合は,S94において,入力ロ
グファイル2からコマンド情報を読み込み,その後,S
95において,読み込んだコマンド情報からメッセージ
を作成する。
Next, FIG. 7 shows an example of a flow chart showing the process of command information output in the command information output unit 4. First, in S91, the target processes 5, 6
Determine the input source of the message that causes the. Either the input unit 1 or the input log file 2 can be selected as the input source. In S92, the input destination is the input unit 1
And the input log file 2 are checked. If the input destination is the input unit 1, the message is received from the input unit 1 in S93. On the other hand, when the input destination is the input log file 2, command information is read from the input log file 2 in S94, and then S
At 95, a message is created from the read command information.

【0028】次に,S96において,メッセージの送り
先ターゲットnを決定する。送り先は,入力元が入力部
1である場合は現在利用者と対話しているターゲットプ
ロセスとなり,入力元が入力ログファイル2である場合
は,コマンド情報内に記録されているターゲットID8
2が示すターゲットプロセスとなる。メッセージの送り
先ターゲットプロセスを決定したの後,S97におい
て,決定したターゲットプロセスへメッセージを送る。
これにより,ターゲットプロセスが実際に動作するよう
になる。また,S98において,同一内容のメッセージ
をログ情報収集部10へも送る。これにより,コマンド
情報が出力ログファイル12へ記録される。
Next, in S96, the message destination target n is determined. The destination is the target process that is currently interacting with the user when the input source is the input unit 1, and the target ID 8 recorded in the command information when the input source is the input log file 2.
2 is the target process. After determining the destination process of the message, the message is sent to the determined target process in S97.
This allows the target process to actually run. Further, in S98, the message having the same content is also sent to the log information collecting unit 10. As a result, the command information is recorded in the output log file 12.

【発明の効果】以上説明してきたように,この発明によ
るログ管理装置によれば,ターゲットプロセスとログ収
集装置とがそれぞれ別プロセスで動作し,ターゲットプ
ロセス処理の空き時間を利用してログファイルへの出力
を行なうため,ログ出力を行なっても,ログ出力を行な
わない場合に比べターゲットプロセスの処理速度がそれ
ほど低下しないですむ。又,複数のターゲットプロセス
のログ情報を一括してログファイルに出力できる。更
に,ネットワークを介して他のマシンでログ情報を取る
こともできる。この場合でも,ターゲットプロセス実行
側のCPUの負荷が減るので,ターゲットプロセスの速
度低下を更に少なくすることができる。又,この発明に
よるログ管理装置によれば,ログ出力ライブラリがログ
収集装置の活動を検出し,ログ収集装置が活動していな
ければログ情報を出力しないため,ターゲットプロセス
の変更/コンパイル/リンクをし直すことなく,ターゲ
ットプロセス実行中の任意の時点でログ収集のオン/オ
フを切替ることができる。又,ログ収集をしないときに
は,ターゲットプロセスの速度低下を非常に少なくする
ことができる。更に,この発明によるログ管理装置によ
れば,ログファイルに出力するターゲットプロセスを,
一つ又は複数選択することができるため,多数のターゲ
ットプロセスが動作している場合において,必要なプロ
セスのログ情報のみを収集することができる。又,この
選択はログ収集装置側で行なうため,ログ収集中の任意
の時点で,ターゲットプロセスの選択をすることができ
る。更に又,この発明によるログ管理装置によれば,タ
ーゲットプロセスが出力するログ情報とともに,利用者
の入力操作もログファイルに出力するため,ログファイ
ル中には利用者の入力操作を表すコマンド情報と,その
入力操作に対応するログ情報とが交互に書かれることに
なり,利用者はログファイルを容易に解析することがで
きる。又,この発明によるログ管理装置によれば,ログ
ファイルに出力したコマンド情報を読み出し,これを再
びターゲットプロセスに与えることにより,一つ又は複
数のターゲットプロセスを自動的に再実行することがで
きるため,一連の操作によりターゲットプロセスに障害
が発生するような場合,そのコマンド情報とログ情報を
保存しておき,これを用いてターゲットプロセスを自動
実行することにより,障害の再現テストを自動的に行な
うことができる。又,ターゲットプロセスに修正を加え
た場合,修正前と修正後のターゲットプロセスでそれぞ
れ自動実行を行ない,各出力ログファイルを比較するこ
とにより,修正結果の確認を容易に行なうことができ
る。
As described above, according to the log management apparatus of the present invention, the target process and the log collection apparatus operate in separate processes, and the log file is written to the log file by utilizing the idle time of the target process processing. As a result, the processing speed of the target process does not decrease so much even if the log is output, compared to the case where the log is not output. Also, the log information of multiple target processes can be output to a log file all at once. In addition, log information can be collected on other machines via the network. Even in this case, the load on the CPU on the target process execution side is reduced, so that the speed decrease of the target process can be further reduced. Further, according to the log management device of the present invention, the log output library detects the activity of the log collecting device and does not output the log information if the log collecting device is not active, so that the target process is changed / compiled / linked. Log collection can be turned on / off at any point during execution of the target process without re-execution. Further, when the log collection is not performed, the decrease in the speed of the target process can be greatly reduced. Further, according to the log management device of the present invention, the target process to be output to the log file is
Since one or more can be selected, only the log information of the necessary process can be collected when many target processes are operating. Also, since this selection is made on the log collection device side, the target process can be selected at any point during log collection. Further, according to the log management device of the present invention, the user's input operation is also output to the log file together with the log information output by the target process. Therefore, command information indicating the user's input operation is included in the log file. , The log information corresponding to the input operation is written alternately, and the user can easily analyze the log file. Further, according to the log management apparatus of the present invention, one or a plurality of target processes can be automatically re-executed by reading the command information output to the log file and supplying it to the target process again. , If a failure occurs in the target process due to a series of operations, the command information and log information are saved, and the target process is automatically executed using this, and the failure reproduction test is automatically performed. be able to. When the target process is modified, the target process before and after the modification is automatically executed and the output log files are compared, so that the modification result can be easily confirmed.

【図面の簡単な説明】[Brief description of drawings]

【図1】この発明によるログ記録管理装置の概要を示す
機能ブロック図の一例である。
FIG. 1 is an example of a functional block diagram showing an outline of a log recording management device according to the present invention.

【図2】この発明によるログ記録管理装置の全体の処理
手順を示すフロー図の一例である。
FIG. 2 is an example of a flowchart showing the overall processing procedure of the log recording management apparatus according to the present invention.

【図3】この発明によるログ記録管理装置のプロセス切
替処理部の処理を示すフロー図の一例である。
FIG. 3 is an example of a flow chart showing processing of a process switching processing unit of the log recording management apparatus according to the present invention.

【図4】この発明によるログ記録管理装置のログ情報出
力部の処理を示すフロー図の一例である。
FIG. 4 is an example of a flowchart showing a process of a log information output unit of the log recording management device according to the present invention.

【図5】この発明によるログ記録管理装置のログ情報収
集部の処理を示すフロー図の一例である。
FIG. 5 is an example of a flow diagram showing a process of a log information collecting unit of the log recording management apparatus according to the present invention.

【図6】この発明によるログ記録管理装置の共用メモリ
の中,及び,出力ログファイルの中のログ情報の一例で
ある。
FIG. 6 is an example of log information in a shared memory and an output log file of the log recording management device according to the present invention.

【図7】この発明によるログ記録管理装置のコマンド情
報収集の処理を示すフロー図の一例である。
FIG. 7 is an example of a flowchart showing a command information collecting process of the log recording management apparatus according to the present invention.

【図8】この発明によるログ記録管理装置の出力ログフ
ァイルの中のコマンド情報の一例である。
FIG. 8 is an example of command information in an output log file of the log recording management device according to the present invention.

【図9】この発明によるログ記録管理装置のおけるコマ
ンド情報出力の処理を示すフロー図の一例である。
FIG. 9 is an example of a flowchart showing a command information output process in the log recording management apparatus according to the present invention.

【符号の説明】[Explanation of symbols]

1 入力部 2 入力ログファイル 3 入力元選択部 4 コマンド情報出力部 5 ターゲット1 6 ターゲットn 7 ログ情報出力部 8 共用メモリ 9 ログ収集装置検出部 10 ログ情報収集部 11 ターゲット選択部 12 出力ログファイル 13 ログ収集装置 14 ログ出力ライブラリ 1 Input Section 2 Input Log File 3 Input Source Selection Section 4 Command Information Output Section 5 Target 1 6 Target n 7 Log Information Output Section 8 Shared Memory 9 Log Collection Device Detection Section 10 Log Information Collection Section 11 Target Selection Section 12 Output Log File 13 Log collector 14 Log output library

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 マルチプロセス環境下で,1又は複数の
ターゲットプロセスのログを収集するログ記録管理装置
において,前記ターゲットプロセスと別のプロセスで動
作し,該ターゲットプロセスの処理の空き時間を用い
て,前記ログを収集することを特徴とするログ記録管理
装置。
1. A log recording management device for collecting logs of one or a plurality of target processes under a multi-process environment, the process operating as a process different from the target process, and using the idle time of the processing of the target process. A log recording management device characterized by collecting the logs.
【請求項2】 マルチプロセス環境下で,1又は複数の
ターゲットプロセスのログを収集するログ記録管理装置
において,前記ターゲットプロセスにリンクされるログ
出力ライブラリが前記ログを収集するための装置の活動
を検出し,当該検出結果に基づいて当該ログの収集のオ
ン/オフを切替ることを特徴とするログ記録管理装置。
2. In a log recording management device for collecting logs of one or a plurality of target processes under a multi-process environment, a log output library linked to the target process performs an activity of the device for collecting the logs. A log recording management device characterized by detecting and switching on / off of collection of the log based on the detection result.
【請求項3】 マルチプロセス環境下で,1又は複数の
ターゲットプロセスのログを収集するログ記録管理装置
において,前記ターゲットプロセスを前記ログ収集中の
任意の時点で選択することを特徴とするログ記録管理装
置。
3. A log recording management apparatus for collecting logs of one or a plurality of target processes in a multi-process environment, wherein the target process is selected at an arbitrary point during the log collection. Management device.
【請求項4】 マルチプロセス環境下で,1又は複数の
ターゲットプロセスのログを収集するログ記録管理装置
において,前記ターゲットプロセスに対する利用者の入
力操作を前記ログの情報とともに保存することを特徴と
するログ記録管理装置。
4. A log recording management device for collecting logs of one or a plurality of target processes under a multi-process environment, characterized in that a user's input operation to the target process is stored together with the information of the log. Log record management device.
【請求項5】 請求項4のログ記録管理装置において,
前記保存した情報を読み出して前記ターゲットプロセス
に与え,該ターゲットプロセスを再実行させることを特
徴とするログ記録管理装置。
5. The log recording management device according to claim 4,
A log recording management device, wherein the stored information is read out, given to the target process, and the target process is re-executed.
JP6037414A 1994-03-08 1994-03-08 Log record management device Pending JPH07248943A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6037414A JPH07248943A (en) 1994-03-08 1994-03-08 Log record management device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6037414A JPH07248943A (en) 1994-03-08 1994-03-08 Log record management device

Publications (1)

Publication Number Publication Date
JPH07248943A true JPH07248943A (en) 1995-09-26

Family

ID=12496869

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6037414A Pending JPH07248943A (en) 1994-03-08 1994-03-08 Log record management device

Country Status (1)

Country Link
JP (1) JPH07248943A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006107217A (en) * 2004-10-06 2006-04-20 Ricoh Co Ltd Image forming apparatus, log transfer method and log transfer system
JP2006260596A (en) * 2001-09-28 2006-09-28 Ricoh Co Ltd Drawing information acquiring method, program for executing this method by computer, and image forming device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006260596A (en) * 2001-09-28 2006-09-28 Ricoh Co Ltd Drawing information acquiring method, program for executing this method by computer, and image forming device
JP2006107217A (en) * 2004-10-06 2006-04-20 Ricoh Co Ltd Image forming apparatus, log transfer method and log transfer system

Similar Documents

Publication Publication Date Title
US6502206B1 (en) Multi-processor switch and main processor switching method
JP4295775B2 (en) GUI test support system and application program for test support
JP2003063327A (en) Electronic controller for vehicle
JPH07248943A (en) Log record management device
CN116521411A (en) Method, device and medium for detecting program error and resetting embedded device
JPH10105440A (en) System fault monitoring device and recording medium
CN100377105C (en) Automatic alarm testing method
JP2000010829A (en) Device and method for supporting fault analysis
JPH0962626A (en) On-line testing method of decentralized processing system
JPH05274186A (en) Input data processor
JP3166730B2 (en) Automatic test apparatus for exchange, automatic test method for exchange, and recording medium
JPH11119992A (en) Trace controller for firmware
JPH01256896A (en) Process state display device
JPH10260870A (en) System starting and termination controller
JPH0635857A (en) Abnormal end recovery system
JPH02165352A (en) Dump processing system
JPH0877121A (en) Hot standby information handing-over system
JPH06141074A (en) Fault analysis processing system
JPH03129535A (en) Collecting volume optimizing system for debugging information
JPH086909A (en) Parallel computer system
JP2003008599A (en) Fiber channel switch, and fiber channel switch verification method
JPH01115244A (en) System for controlling line logging automatic stop
JPH0341897A (en) Process data collection device
JP2000322287A (en) Information processor and information processing method
JP2002215471A (en) Memory port, storage device and information processing system