JP7110942B2 - Information processing device, error analysis support method, and error analysis support program - Google Patents

Information processing device, error analysis support method, and error analysis support program Download PDF

Info

Publication number
JP7110942B2
JP7110942B2 JP2018220884A JP2018220884A JP7110942B2 JP 7110942 B2 JP7110942 B2 JP 7110942B2 JP 2018220884 A JP2018220884 A JP 2018220884A JP 2018220884 A JP2018220884 A JP 2018220884A JP 7110942 B2 JP7110942 B2 JP 7110942B2
Authority
JP
Japan
Prior art keywords
log
storage device
analysis
writing
error
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2018220884A
Other languages
Japanese (ja)
Other versions
JP2020086981A (en
Inventor
寛之 加藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP2018220884A priority Critical patent/JP7110942B2/en
Publication of JP2020086981A publication Critical patent/JP2020086981A/en
Application granted granted Critical
Publication of JP7110942B2 publication Critical patent/JP7110942B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Retry When Errors Occur (AREA)
  • Debugging And Monitoring (AREA)

Description

本発明は、情報処理装置、エラー解析支援方法、及び、エラー解析支援プログラムに関する。 The present invention relates to an information processing device, an error analysis support method, and an error analysis support program.

従来、画像形成装置等の情報処理装置では、障害解析に必要な情報を取得するため、装置内にある障害解析用のログや装置の情報(蓄積ログ)をバックアップ用の他の記憶装置へ書き出しておく手法がある。 Conventionally, in an information processing apparatus such as an image forming apparatus, in order to acquire information necessary for failure analysis, a log for failure analysis and information (accumulated log) of the apparatus in the apparatus are written to another storage device for backup. There is a method to keep

特許文献1には、上記手法を実施可能な画像処理装置において、記憶装置にバックアップされている画像処理装置のログ情報に関し、画像処理装置における当該ログ情報の消失を検知すると、ログ情報の消失が起こった後に画像処理装置において生成されたログ情報を画像処理装置から取得して記録領域に記録し、これにより、ログ履歴の消失後に画像処理装置が実行したジョブのログ履歴の消失を防止する構成が開示されている。 Japanese Patent Application Laid-Open No. 2002-200000 discloses that, in an image processing apparatus capable of implementing the above technique, loss of log information is detected when the loss of the log information in the image processing apparatus is detected. A configuration for preventing loss of log history of jobs executed by the image processing device after the loss of the log history by acquiring log information generated in the image processing device after the event has occurred and recording it in a recording area. is disclosed.

ところで、上記の蓄積ログをバックアップ用の他の記憶装置へ書き出す処理の最中にこの処理に起因するエラーが発生する場合がある。このとき、エラーの原因を調べるために、エラー発生時の装置内のログを取得できると有効である。しかし、特許文献1に記載の手法では、記憶装置へのログ情報(蓄積ログ)のバックアップ中にエラーが発生した場合に、エラーの原因を調べるためのログ(解析ログ)が得られず、エラーを解消するための作業効率が低下するという課題が残る。 By the way, an error may occur due to this process during the process of writing the accumulated log to another storage device for backup. At this time, in order to investigate the cause of the error, it would be effective if the log in the device when the error occurred could be obtained. However, with the method described in Patent Document 1, when an error occurs during backup of log information (accumulated log) to a storage device, a log (analysis log) for investigating the cause of the error cannot be obtained, and an error occurs. The problem remains that the work efficiency for resolving the problem is lowered.

本発明は、蓄積ログのバックアップ中に発生したエラーの原因を調べるための解析ログを取得可能とすることを目的とする。 An object of the present invention is to make it possible to acquire an analysis log for investigating the cause of an error that occurred during backup of an accumulated log.

上述した課題を解決するために、本発明の一観点に係る情報処理装置は、アプリケーションが出力したログを保持する第1記憶装置と、前記ログが所定量以上蓄積したときに前記第1記憶装置から出力される蓄積ログを格納する第2記憶装置と、前記第1記憶装置及び前記第2記憶装置とは異なる他の記憶装置に前記蓄積ログを書き出すログ管理部と、を備え、前記ログ管理部は、前記蓄積ログを前記他の記憶装置へ書き出す処理中にエラーが発生した場合、前記第1記憶装置に記憶されているログをエラー解析用の解析ログとして前記他の記憶装置へ書き出す。 In order to solve the above-described problems, an information processing apparatus according to one aspect of the present invention includes a first storage device that holds logs output by applications; and a log management unit for writing the accumulated log to a storage device different from the first storage device and the second storage device, wherein the log management The unit writes the log stored in the first storage device to the other storage device as an analysis log for error analysis when an error occurs during the process of writing the accumulated log to the other storage device.

ログの取得中にエラーが発生した場合にその原因を調べるためのログを取得することができる。 If an error occurs while acquiring the log, the log can be acquired to investigate the cause.

実施形態に係る画像形成装置のハードウェア構成図1 is a hardware configuration diagram of an image forming apparatus according to an embodiment; 画像形成装置のソフトウェアとハードウェアとの関連を示す図FIG. 2 is a diagram showing the relationship between software and hardware of an image forming apparatus; 画像形成装置におけるログ蓄積の手順を説明する図FIG. 4 is a diagram for explaining a log accumulation procedure in an image forming apparatus; 共有メモリの内部構造について説明する図Diagram explaining the internal structure of shared memory 画像形成装置におけるログ蓄積のシーケンス図Sequence diagram of log accumulation in image forming apparatus 画像形成装置における蓄積ログのバックアップの手順を説明する図FIG. 4 is a diagram for explaining the procedure for backing up accumulated logs in an image forming apparatus; 画像形成装置におけるログバックアップのシーケンス図Sequence diagram of log backup in an image forming apparatus ログバックアップ処理中にエラー発生したときのシーケンス図Sequence diagram when an error occurs during log backup processing ログバックアップ処理中に画像形成装置アプリログのフォルダの作成に失敗した場合のシーケンス図Sequence diagram when creation of the image forming device application log folder fails during log backup processing 解析ログの管理テーブルの一例を示す図Diagram showing an example of an analysis log management table 解析ログをSDカードにコピーする手順を説明する図Diagram explaining the procedure for copying the analysis log to the SD card 共有メモリのログと解析ログの関係について説明する図Diagram explaining the relationship between shared memory logs and analysis logs ログ取得エラー発生時の解析ログへの書き込み処理のフローチャートFlowchart of processing to write to the analysis log when a log acquisition error occurs 共有メモリのループ回数が解析ログよりも大きい場合の解析ログへの書き込みロジックのフローチャートFlowchart of logic for writing to analysis log when shared memory loop count is greater than analysis log 本実施形態に係る画像形成装置の解析ログ取得処理の概略構成を説明する図FIG. 4 is a diagram for explaining a schematic configuration of analysis log acquisition processing of the image forming apparatus according to the present embodiment;

以下、添付図面を参照しながら実施形態について説明する。説明の理解を容易にするため、各図面において同一の構成要素に対しては可能な限り同一の符号を付して、重複する説明は省略する。 Embodiments will be described below with reference to the accompanying drawings. In order to facilitate understanding of the description, the same constituent elements in each drawing are denoted by the same reference numerals as much as possible, and overlapping descriptions are omitted.

以下では、本実施形態に係る情報処理装置の一例として画像形成装置1を挙げて説明する。 An image forming apparatus 1 will be described below as an example of an information processing apparatus according to the present embodiment.

図1は、実施形態に係る画像形成装置1のハードウェア構成図である。SOC(System On Chip)2は、CPU(Central Processing Unit)2aと、周辺機器を制御するための機能を搭載した集積回路である。SOC2には、メモリ3と、HDD(hard disk drive)4と、SDカードソケット5と、操作部6とが接続されている。 FIG. 1 is a hardware configuration diagram of an image forming apparatus 1 according to the embodiment. The SOC (System On Chip) 2 is an integrated circuit equipped with a CPU (Central Processing Unit) 2a and functions for controlling peripheral devices. A memory 3 , an HDD (hard disk drive) 4 , an SD card socket 5 and an operation unit 6 are connected to the SOC 2 .

メモリ3(第1記憶装置)は、電源供給されている間保持するデータを格納する。 The memory 3 (first storage device) stores data to be held while power is supplied.

HDD4(第2記憶装置)は、永続的なデータを格納する。 HDD4 (second storage device) stores permanent data.

SDカードソケット5は、SDカード7を挿入でき、挿入したSDカード7(他の記憶装置)には永続的なデータが格納される。 An SD card 7 can be inserted into the SD card socket 5, and permanent data is stored in the inserted SD card 7 (another storage device).

操作部6は表示部と入力部から構成され、画像形成装置1の利用者が、画像形成装置1に対する操作の入出力を行う装置である。 The operation unit 6 is composed of a display unit and an input unit, and is a device for inputting and outputting operations to the image forming apparatus 1 by a user of the image forming apparatus 1 .

図2は、画像形成装置1のソフトウェアとハードウェアとの関連を示す図である。 FIG. 2 is a diagram showing the relationship between software and hardware of the image forming apparatus 1. As shown in FIG.

図2に示すように、ソフトウェアは、OS(Operating System)11と、アプリケーション12と、ライブラリ13から構成される。ハードウェアは、上述のCPU2aやメモリ3、HDD4、SDカード7、操作部6などがある。 As shown in FIG. 2, the software consists of an OS (Operating System) 11, an application 12, and a library 13. FIG. Hardware includes the above-described CPU 2a, memory 3, HDD 4, SD card 7, operation unit 6, and the like.

OS11は、ハードウェアを管理してアプリケーション12やライブラリ13がハードウェアを利用できるように機能を提供する。 The OS 11 manages the hardware and provides functions so that the application 12 and the library 13 can use the hardware.

アプリケーション12は、利用者に画像形成装置1を使用するための機能を提供する。本実施形態では、アプリケーション12の例として、画像形成装置管理アプリ14と、ログを管理するログ管理アプリ15(ログ管理部)が存在する。 The application 12 provides the user with functions for using the image forming apparatus 1 . In this embodiment, as an example of the application 12, there are an image forming apparatus management application 14 and a log management application 15 (log management unit) that manages logs.

ライブラリ13は、アプリケーション12を作成する時に組み込まれ、複数のアプリケーション12が共通で使用するような機能をAPI(Application Programming Interface)として提供する。本実施形態では、ライブラリ13の例として、ログ出力ライブラリ16が存在する。 The library 13 is incorporated when the application 12 is created, and provides functions commonly used by a plurality of applications 12 as an API (Application Programming Interface). In this embodiment, a log output library 16 exists as an example of the library 13 .

画像形成装置1は、ログ管理アプリ15によって、各アプリケーション12のログ情報をメモリ3に保持し、HDD4に書き出して蓄積ログ41をHDD4に格納することができる。図3は、画像形成装置1におけるログ蓄積の手順を説明する図である。 The image forming apparatus 1 can hold the log information of each application 12 in the memory 3 by using the log management application 15 , write the log information to the HDD 4 , and store the accumulation log 41 in the HDD 4 . FIG. 3 is a diagram for explaining the log accumulation procedure in the image forming apparatus 1. As shown in FIG.

図3に示すように、画像形成装置管理アプリ14やログ管理アプリ15等のアプリケーション12や、OS11は、出力したいログを引数として、ログ出力ライブラリ16のAPIを呼び出す(「10.API呼び出し」処理)。 As shown in FIG. 3, the application 12 such as the image forming apparatus management application 14 and the log management application 15, and the OS 11 call the API of the log output library 16 with the log to be output as an argument ("10. API call" process). ).

ログ出力ライブラリ16は、共有メモリ31上の先頭から空いたエリアに、引数で渡されたログ17を格納する(「11.書き出し」処理)。図3の例では、画像形成装置管理アプリ14、ログ管理アプリ15、OS11は、それぞれ共有メモリ31A、31B、31Cにログ17A、17B、17Cを格納するよう構成されている。以下では、共有メモリ31A、31B、31Cを纏めて共有メモリ31と表記し、ログ17A、17B、17Cを纏めてログ17と表記する場合がある。 The log output library 16 stores the log 17 passed as an argument in an empty area from the top of the shared memory 31 ("11. Write out" process). In the example of FIG. 3, the image forming apparatus management application 14, log management application 15, and OS 11 are configured to store logs 17A, 17B, and 17C in shared memories 31A, 31B, and 31C, respectively. Hereinafter, the shared memories 31A, 31B, and 31C may be collectively referred to as the shared memory 31, and the logs 17A, 17B, and 17C may be collectively referred to as the log 17.

ログ出力ライブラリ16は、共有メモリ31上のログ17のサイズが共有メモリ31のサイズの半分を超えた場合、ログ管理アプリ15にログ17が蓄積されたことを通知する(「12.通知」処理)。 When the size of the log 17 on the shared memory 31 exceeds half the size of the shared memory 31, the log output library 16 notifies the log management application 15 that the log 17 has been accumulated (“12. ).

ログ管理アプリ15は、通知を受けると、全ての共有メモリ31A、31B、31Cを確認して、ログ17A、17B、17Cのサイズが共有メモリのサイズの半分を超えた場合、そのログを共有メモリのエリア32からメモリ3上の別エリア33に移動する(「13.書き出し」処理)。 Upon receiving the notification, the log management application 15 checks all the shared memories 31A, 31B, and 31C, and if the size of the logs 17A, 17B, and 17C exceeds half the size of the shared memory, the log is transferred to the shared memory. area 32 to another area 33 on the memory 3 ("13. Writing" process).

なお、別エリア33に移動させるのは、共有メモリ31のサイズが有限のため、ログ17が増加した結果、共有メモリ31のエリア32から溢れてしまうことを防ぐためである。また、共有メモリ31のサイズの半分を超えた時に動作する理由は、別エリア33に共有メモリ31のログ17を移動している間に、ログ出力ライブラリ16が共有メモリ31に書き出せないことがないようにするためである。 The reason for moving the log 17 to another area 33 is to prevent the log 17 from overflowing from the area 32 of the shared memory 31 as a result of an increase in the size of the shared memory 31 because the size of the shared memory 31 is limited. Also, the reason why it works when the size of the shared memory 31 exceeds half is that the log output library 16 cannot write to the shared memory 31 while the log 17 in the shared memory 31 is being moved to another area 33. This is to ensure that

別エリア33に纏めたログ17のサイズが、別エリア33の半分のサイズを超えたら、その纏めたログ17をHDD4に移動する(「14.書き出し」処理)。HDD4では、このログ17が蓄積ログ41として格納される。 When the size of the log 17 collected in the separate area 33 exceeds half the size of the separate area 33, the collected log 17 is moved to the HDD 4 ("14. Writing" process). This log 17 is stored as an accumulation log 41 in the HDD 4 .

図4は、共有メモリ31の内部構造について説明する図である。図4に示すように、共有メモリ31は、管理情報34と、ログ17から構成される。 FIG. 4 is a diagram for explaining the internal structure of the shared memory 31. As shown in FIG. As shown in FIG. 4, the shared memory 31 is composed of management information 34 and a log 17. FIG.

管理情報34は、共有メモリ31を管理するのに使用する情報である。管理情報は、例えば、ループ回数や書き込み位置の情報を含む。ログ17は、共有メモリ31の所定領域に書き込まれる。 The management information 34 is information used to manage the shared memory 31 . The management information includes, for example, loop count and write position information. Log 17 is written in a predetermined area of shared memory 31 .

共有メモリ31のサイズは有限で、ログ17を共有メモリ31に書き込んでいくと、書き込み領域がいっぱいになる。その場合、書き込み領域の先頭から上書きされる。管理情報34の「ループ回数」は、先頭から上書きされた回数と一致する。管理情報34の「書き込み位置」は、現在共有メモリ31に書き込んでいるログ17の位置である。 The size of the shared memory 31 is finite, and as the log 17 is written to the shared memory 31, the writing area becomes full. In that case, the write area is overwritten from the beginning. The "number of loops" in the management information 34 matches the number of overwrites from the beginning. The “write position” of the management information 34 is the position of the log 17 currently written to the shared memory 31 .

図3に示すログ出力ライブラリ16は、アプリケーション12やOS11から、図3中の「10.API呼び出し」処理で受け取ったログ17を共有メモリ31に格納する際、共有メモリ31の管理情報34を参考にする。例えば、受け取ったログ17は、書き込み位置の次の位置から格納していく。また、ログ17を格納した後、共有メモリ31の管理情報34の格納位置とループ回数の値は、最新の情報に更新される。 The log output library 16 shown in FIG. 3 refers to the management information 34 of the shared memory 31 when storing the log 17 received from the application 12 or OS 11 in the process of "10. API call" in FIG. to For example, the received log 17 is stored from the position next to the writing position. Also, after the log 17 is stored, the storage location of the management information 34 in the shared memory 31 and the value of the number of loops are updated to the latest information.

図5は、画像形成装置1におけるログ蓄積のシーケンス図である。図5では、ログ蓄積処理に対するログ出力ライブラリ16とログ管理アプリ15のやり取りをシーケンスとして示したものである。 FIG. 5 is a sequence diagram of log accumulation in the image forming apparatus 1. As shown in FIG. FIG. 5 shows a sequence of exchanges between the log output library 16 and the log management application 15 for log accumulation processing.

アプリケーション12は、ログを引数として、ログ出力ライブラリ16のAPIを呼び出す(ステップ1)。 The application 12 calls the API of the log output library 16 with the log as an argument (step 1).

ログ出力ライブラリ16は、共有メモリ31上の先頭から向かって空いたエリアにログ17を格納する(ステップ1.1:保持ステップ)。 The log output library 16 stores the log 17 in an empty area toward the top of the shared memory 31 (step 1.1: holding step).

ログ出力ライブラリ16は、共有メモリ31上のログ17のサイズが共有メモリ31のサイズの半分を超えた場合、ログ管理アプリ15にログ17が蓄積されたことを通知する(ステップ2)。 When the size of the log 17 on the shared memory 31 exceeds half the size of the shared memory 31, the log output library 16 notifies the log management application 15 that the log 17 has been accumulated (step 2).

ログ管理アプリ15は、通知を受けると、全ての共有メモリ31A,31B,31Cを確認して、ログ17A,17B,17Cのサイズが共有メモリ31A,31B,31Cのサイズの半分を超えた場合、そのログ17をメモリ3上の別エリア33に移動する(ステップ2.1)。 When the log management application 15 receives the notification, it checks all the shared memories 31A, 31B, and 31C. The log 17 is moved to another area 33 on the memory 3 (step 2.1).

ログ管理アプリ15は、別エリア33に纏めたログ17のサイズが、別エリア33の半分のサイズを超えたら、その纏めたログ17をHDD4に移動する(ステップ2.2:格納ステップ)。 When the size of the logs 17 collected in the separate area 33 exceeds half the size of the separate area 33, the log management application 15 moves the collected logs 17 to the HDD 4 (step 2.2: storage step).

さらに画像形成装置1は、ログ管理アプリ15によって、HDD4に格納された蓄積ログ41をSDカード7にコピーしてバックアップをとることができる。図6は、画像形成装置1における蓄積ログ41のバックアップの手順を説明する図である。 Further, the image forming apparatus 1 can copy the accumulation log 41 stored in the HDD 4 to the SD card 7 to back it up by using the log management application 15 . FIG. 6 is a diagram for explaining the procedure for backing up the accumulation log 41 in the image forming apparatus 1. As shown in FIG.

利用者がSDカードソケット5にSDカード7を挿入し、操作部6にてログ取得開始の操作を行うと、ログ管理アプリ15は、図6に示すように、SDカード7に出力先フォルダ(蓄積ログフォルダ71)を作成し、HDD4に蓄積された蓄積ログ41(図6の「ログ1」「ログ2」)をそのフォルダ71にコピーする(「21.コピー」処理)。 When the user inserts the SD card 7 into the SD card socket 5 and operates the operation unit 6 to start log acquisition, the log management application 15 stores an output destination folder ( A storage log folder 71) is created, and the storage logs 41 (“log 1” and “log 2” in FIG. 6) stored in the HDD 4 are copied to the folder 71 (“21. copy” process).

また、画像形成装置管理アプリ14は、アプリの内部情報を元にログ17A(図6の「ログa1」)を作成して、ログ管理アプリ15が作成したフォルダ(画像形成装置管理アプリログフォルダ72)に格納する(「22.生成」処理)。 Further, the image forming apparatus management application 14 creates a log 17A ("log a1" in FIG. 6) based on the internal information of the application, and stores the log 17A in the folder created by the log management application 15 (image forming apparatus management application log folder 72). ) (“22. Generate” process).

図7は、画像形成装置1におけるログバックアップのシーケンス図である。 FIG. 7 is a sequence diagram of log backup in the image forming apparatus 1. FIG.

利用者が画像形成装置1のSDカードソケット5にSDカード7を挿入し、操作部6にてログ取得開始の操作を行うと(ステップ1)、画像形成装置管理アプリ14は、ログ管理アプリ15に蓄積ログ41の取得を要求する(ステップ1.1)。 When the user inserts the SD card 7 into the SD card socket 5 of the image forming apparatus 1 and operates the operation unit 6 to start log acquisition (step 1), the image forming apparatus management application 14 starts the log management application 15. is requested to acquire the accumulation log 41 (step 1.1).

ログ管理アプリ15は、SDカード7に出力先フォルダ(蓄積ログフォルダ71)を作成し、HDD4に蓄積された蓄積ログ41(図6の「ログ1」「ログ2」)をそのフォルダ71にコピーする(ステップ1.1.1:蓄積ログ書き出しステップ)。 The log management application 15 creates an output destination folder (accumulation log folder 71) in the SD card 7, and copies the accumulation log 41 (“log 1” and “log 2” in FIG. 6) accumulated in the HDD 4 to the folder 71. (step 1.1.1: accumulation log writing step).

ログ管理アプリ15は、SDカード7に画像形成装置管理アプリログのフォルダ72を作成して(ステップ1.1.2)、画像形成装置管理アプリ14にログ17Aの取得を要求する(ステップ1.1.3)。 The log management application 15 creates the folder 72 of the image forming apparatus management application log in the SD card 7 (step 1.1.2), and requests the image forming apparatus management application 14 to acquire the log 17A (step 1.1.2). 1.3).

画像形成装置管理アプリ14は、アプリの内部情報を元にログ17A(図6の「ログa1」)を作成して、画像形成装置管理アプリログのフォルダ72に格納する(ステップ1.2)。 The image forming apparatus management application 14 creates a log 17A (“log a1” in FIG. 6) based on the internal information of the application and stores it in the image forming apparatus management application log folder 72 (step 1.2).

画像形成装置管理アプリ14は、ログ管理アプリ15にログ取得の完了を通知すると(ステップS1.3)、ログ管理アプリ15は、画像形成装置管理アプリ14にログ取得の完了を通知する(ステップ2)。 When the image forming apparatus management application 14 notifies the log management application 15 of the completion of log acquisition (step S1.3), the log management application 15 notifies the image forming apparatus management application 14 of the completion of log acquisition (step S1.3). ).

画像形成装置管理アプリ14は、操作部6にログ取得が完了したことを表示して、利用者にログ取得完了を通知する(ステップ2.1)。 The image forming apparatus management application 14 displays completion of log acquisition on the operation unit 6 to notify the user of the log acquisition completion (step 2.1).

利用者はSDカード7を回収して、ログ17を障害の解析に使用する。 The user collects the SD card 7 and uses the log 17 for failure analysis.

上記の図6、図7は、ログバックアップの正常な手順を説明した。これに対して、本実施形態では、ログバックアップの処理中にエラーが発生したときに、エラー種類に応じた解析ログ74(図11参照)をメモリ3からSDカード7に書き出す機能を有する。解析ログ74とは、画像形成装置1のログ取得時にエラーが発生し、そのエラーの解析に使用するため、SDカード7などの外部記憶装置に格納するログのことをいう。以降ではこの解析ログ書き出し処理(エラー解析支援方法)について説明する。 The above FIGS. 6 and 7 explained the normal procedure of log backup. In contrast, this embodiment has a function of writing an analysis log 74 (see FIG. 11) corresponding to the error type from the memory 3 to the SD card 7 when an error occurs during log backup processing. The analysis log 74 is a log that is stored in an external storage device such as the SD card 7 in order to analyze an error that has occurred during log acquisition of the image forming apparatus 1 . This analysis log writing process (error analysis support method) will be described below.

図8は、ログバックアップ処理中にエラー発生したときのシーケンス図である。図8の基本シーケンスは、図7の画像形成装置1におけるログバックアップのシーケンス図と同じであるが、以下の点が異なる。 FIG. 8 is a sequence diagram when an error occurs during log backup processing. The basic sequence in FIG. 8 is the same as the sequence diagram of log backup in the image forming apparatus 1 in FIG. 7, but differs in the following points.

(1)ステップ1.1.1 「SDカードに出力先フォルダを作成し、HDDに蓄積されたログをそのフォルダにコピーする」でエラーが発生した場合、例えば、HDD4から蓄積ログ41が読み取れなかった場合、ステップ1.1.2「解析ログをSDにコピーする」が実行される(解析ログ書き出しステップ)。 (1) If an error occurs in step 1.1.1 "Create an output destination folder on the SD card and copy the logs accumulated in the HDD to that folder", for example, the accumulation log 41 cannot be read from the HDD4. If so, step 1.1.2 “Copy analysis log to SD” is executed (analysis log writing step).

(2)ステップ1.2 「アプリの内部情報を元にログを作成して、画像形成装置管理アプリログのフォルダに格納する」でエラーが発生した場合、画像形成装置管理アプリ14は、ステップ1.3「ログ取得の完了通知」で、エラーであることをログ管理アプリ15に通知する。ログ管理アプリ15は、エラー通知を受けると、ステップ2「解析ログをSDにコピーする」を実行する(解析ログ書き出しステップ)。 (2) If an error occurs in step 1.2 "Create a log based on the internal information of the application and store it in the folder of the image forming apparatus management application log", the image forming apparatus management application 14 performs step 1. 3. Notify the log management application 15 of the error with 3 "notification of completion of log acquisition". Upon receiving the error notification, the log management application 15 executes step 2 "copy analysis log to SD" (analysis log writing step).

(3)ログ管理アプリ15は、一度でもエラーが発生したことを検知すると、ステップ3「ログ取得の完了通知」で、エラーが発生したことを画像形成装置管理アプリ14に通知する。画像形成装置管理アプリ14は、エラーが発生したことを受けると、ステップ3.1「操作部にログ取得が完了したことを表示」で、操作部6にログ取得に失敗したことを表示する。 (3) When the log management application 15 detects that an error has occurred even once, it notifies the image forming apparatus management application 14 of the occurrence of the error in step 3 "log acquisition completion notification". When the image forming apparatus management application 14 receives the fact that the error has occurred, it displays on the operation unit 6 that the log acquisition has failed in step 3.1 "Display completion of log acquisition on operation unit".

図9は、ログバックアップ処理中に画像形成装置アプリログのフォルダ72の作成に失敗した場合のシーケンス図である。図9の基本シーケンスは、図8と同様に図7の画像形成装置1におけるログバックアップのシーケンス図と同じであるが、以下の点が異なる。 FIG. 9 is a sequence diagram when creation of the image forming apparatus application log folder 72 fails during log backup processing. The basic sequence in FIG. 9 is the same as the sequence diagram of log backup in the image forming apparatus 1 in FIG. 7, as in FIG. 8, except for the following points.

(1)ステップ1.1.2「SDカードに画像形成装置管理アプリログのフォルダ作成」でエラーが発生した場合、例えば、SDカード7にフォルダ72を作成できなかった場合、ステップ1.1.2「解析ログをSDにコピーする」を実行する(解析ログ書き出しステップ)。 (1) If an error occurs in step 1.1.2 "create folder for image forming apparatus management application log in SD card", for example, if folder 72 cannot be created in SD card 7, step 1.1. 2 Execute "copy analysis log to SD" (analysis log writing step).

(2)ログ管理アプリ15は、ステップ2「ログ取得の完了通知」で、エラーが発生したことを画像形成装置管理アプリ14に通知する。画像形成装置管理アプリ14は、エラーが発生したことを受けると、ステップ2.1「操作部にログ取得が完了したことを表示」で、操作部6にログ取得に失敗したことを表示する。 (2) The log management application 15 notifies the image forming apparatus management application 14 of the occurrence of an error in step 2 "log acquisition completion notification". When the image forming apparatus management application 14 receives the fact that the error has occurred, it displays on the operation unit 6 that the log acquisition has failed in step 2.1 "Display completion of log acquisition on operation unit".

図9のシーケンスでは、ログ管理アプリ15が画像形成装置管理アプリ14に対して「ログの取得を要求」しない点が、図8のシーケンスと異なる。これは、画像形成装置管理アプリ14が作成するログを格納する場所の作成に失敗したので、置き場所がなくなり、処理をスキップしたためである。 The sequence in FIG. 9 is different from the sequence in FIG. 8 in that the log management application 15 does not "request log acquisition" to the image forming apparatus management application 14 . This is because the creation of a location for storing the log created by the image forming apparatus management application 14 has failed, so there is no place to store the log, and the processing is skipped.

また、本実施形態では、ログ管理アプリ15は、エラー発生時にはエラーの種類に応じて解析に必要な解析ログ74を適宜選択してSDカード7に書き出すことができる。ログ管理アプリ15は、例えば図10に示すような解析ログ74の管理テーブル15Aを有し、この管理テーブル15Aを参照して解析ログ74として書き出すログの種類を選択する。 Further, in this embodiment, the log management application 15 can appropriately select the analysis log 74 required for analysis according to the type of error and write it to the SD card 7 when an error occurs. The log management application 15 has, for example, a management table 15A of the analysis log 74 as shown in FIG.

図10は、解析ログ74の管理テーブル15Aの一例を示す図である。解析ログ74の管理テーブル15Aは、ログ取得中のエラーが発生したタイミングと、そのエラーを解析するのに必要なログ17の種類とを対応付けたものである。図10の例では、図8のシーケンス図の(1)、(2)、図9のシーケンス図の(1)について項目が設けられている。例えば、「SDカードに画像形成装置管理アプリログのフォルダ作成」のステップでエラーが発生した場合、OS11とログ管理アプリ15のログ17C、17Bがあれば解析可能であることを表している。 FIG. 10 is a diagram showing an example of the management table 15A of the analysis log 74. As shown in FIG. The management table 15A of the analysis log 74 associates the timing at which an error occurred during log acquisition with the type of log 17 required to analyze the error. In the example of FIG. 10, items are provided for (1) and (2) in the sequence diagram of FIG. 8 and (1) in the sequence diagram of FIG. For example, when an error occurs in the step of "creating a folder for the image forming apparatus management application log in the SD card", it is possible to analyze the logs 17C and 17B of the OS 11 and the log management application 15. FIG.

この管理テーブル15Aは、ログ管理アプリ15に固定値として組み込まれており、動的に変更することはできない。 This management table 15A is built into the log management application 15 as fixed values and cannot be dynamically changed.

図8、図9のエラーシーケンスにおいてエラー発生時の処理として挙がった「解析ログをSDにコピーする」について、図11を参照して説明する。図11は、解析ログ74をSDカード7にコピーする手順を説明する図である。 "Copying the analysis log to the SD" listed as a process when an error occurs in the error sequences of FIGS. 8 and 9 will be described with reference to FIG. FIG. 11 is a diagram for explaining the procedure for copying the analysis log 74 to the SD card 7. As shown in FIG.

解析ログ74をSDカード7にコピーする処理では、ログ管理アプリ15が主となって、以下の処理を行う。 In the process of copying the analysis log 74 to the SD card 7, the log management application 15 mainly performs the following processes.

(1)SDカード7に解析ログフォルダ73がなければ、フォルダを作成する。解析ログフォルダ73は、ログ取得毎にユニークな番号が付加されている。つまり、利用者が前回、操作部6でログ取得を実行してエラーが発生した時に作成したフォルダと、今回エラーが発生した時に作成されるフォルダ名は異なる。 (1) If the SD card 7 does not have an analysis log folder 73, create a folder. A unique number is added to the analysis log folder 73 for each log acquisition. In other words, the name of the folder created when the user executed log acquisition using the operation unit 6 last time and an error occurred differs from the name of the folder created when the error occurred this time.

「ユニークな番号」は、ログ管理アプリ15がログ取得を受けた時の時間をYYYY_MM_DD_HH_MM_SS形式に変換した値である。YYYYは年で、MMは月で、DDは日で、HHは時間で、MMは分で、SSは秒である。例えば、2018年10月1日18時50分20秒に要求を受けた場合、2018_10_01_18_50_20という番号が付加される。 The "unique number" is a value obtained by converting the time when the log management application 15 received log acquisition into the YYYY_MM_DD_HH_MM_SS format. YYYY is the year, MM is the month, DD is the day, HH is the hour, MM is the minute, and SS is the second. For example, if a request is received at 18:50:20 on October 1, 2018, the number 2018_10_01_18_50_20 is added.

(2)図10の解析ログ74の管理テーブル15Aを元に、エラーが発生したタイミングから、取得するログ17の種類を決定する。図11の例では、ログ管理アプリ15のログ17Bと、OS11のログ17Cとが選択されている。 (2) Based on the management table 15A of the analysis log 74 in FIG. 10, the type of log 17 to be acquired is determined from the timing at which the error occurred. In the example of FIG. 11, the log 17B of the log management application 15 and the log 17C of the OS 11 are selected.

(3)上記(2)で決定したログ17B、17Cの種類に対応する共有メモリ31B、31Cより、共有メモリ31B、31Cに格納されたログ17B、17CをSDカード7の解析ログフォルダ73にそれぞれ書き出す。各アプリ12がどの共有メモリ31を使用するかは予め設定されているため、ログ管理アプリ15は、解析に必要なログ17に対する共有メモリ31を探すことが出来る。 (3) The logs 17B and 17C stored in the shared memories 31B and 31C are stored in the analysis log folder 73 of the SD card 7 from the shared memories 31B and 31C corresponding to the types of the logs 17B and 17C determined in (2) above, respectively. write out. Since which shared memory 31 is used by each application 12 is set in advance, the log management application 15 can search for the shared memory 31 for the log 17 required for analysis.

この際、SDカード7の解析ログフォルダ73に、既に、同種のログ76Aが作成されていた場合、上書き保存はせず、差分76Bのみを既存のログに追記するようにする。図12は、共有メモリ31のログ17と解析ログ74の関係について説明する図である。 At this time, if the log 76A of the same type has already been created in the analysis log folder 73 of the SD card 7, only the difference 76B is added to the existing log without overwriting. FIG. 12 is a diagram for explaining the relationship between the log 17 of the shared memory 31 and the analysis log 74. As shown in FIG.

解析ログ74は、管理情報75とログ76から構成されるファイルである。管理情報75は、ループ回数や書き込み位置がある。ログ76は、共有メモリ31にあるログ17をコピーしたものである。 The analysis log 74 is a file composed of management information 75 and log 76 . The management information 75 has the loop count and write position. A log 76 is a copy of the log 17 in the shared memory 31 .

画像形成装置1のログ取得中にエラーが発生すると、解析ログ74が作成され、共有メモリ31の管理情報34にある、ループ回数と書き込み位置が、解析ログ74の管理情報75のエリアに記載され、ログ76が追記される。以降、同一操作中のログ取得でエラーが発生した場合、共有メモリ31の管理情報34を元に解析ログ74の管理情報75が更新され、共有メモリ31のログ17は、解析ログ74のファイルに追記されていく。つまり、解析ログ74に既に記録されているログ76Aと、現在の共有メモリ31のログ17との差分76Bのみが解析ログ74に追加され、既存のログ76Aと新たに追加された差分76Bとが最新のログ76となる。 When an error occurs during log acquisition of the image forming apparatus 1 , an analysis log 74 is created, and the loop count and write position in the management information 34 of the shared memory 31 are written in the management information 75 area of the analysis log 74 . , log 76 is appended. After that, if an error occurs in log acquisition during the same operation, the management information 75 of the analysis log 74 is updated based on the management information 34 of the shared memory 31, and the log 17 of the shared memory 31 is saved to the file of the analysis log 74. It will be added. That is, only the difference 76B between the log 76A already recorded in the analysis log 74 and the current log 17 in the shared memory 31 is added to the analysis log 74, and the existing log 76A and the newly added difference 76B are added to the analysis log 74. It becomes the latest log 76 .

なお、共有メモリ31が複数ある場合、それぞれ個別に解析ログ74が作成される。 Note that if there are a plurality of shared memories 31, the analysis log 74 is created individually for each.

図13を参照して、ログ取得エラー発生時の解析ログ74への書き込みロジックついて説明する。図13は、ログ取得エラー発生時の解析ログ74への書き込み処理のフローチャートである。 The logic for writing to the analysis log 74 when a log acquisition error occurs will be described with reference to FIG. FIG. 13 is a flow chart of writing processing to the analysis log 74 when a log acquisition error occurs.

解析ログ74への書き込みは以下の順に実施される。 Writing to the analysis log 74 is performed in the following order.

(1)SDカード7に解析ログフォルダ73がなければ作成する(ステップS101、S102) (1) If there is no analysis log folder 73 in the SD card 7, create it (steps S101, S102)

(2)図10の解析ログ74の管理テーブル15Aを参照して、エラーが発生したタイミングより、解析に必要なログ17を決定する(ステップS103)。 (2) Referring to the management table 15A of the analysis log 74 of FIG. 10, the log 17 necessary for analysis is determined from the timing of error occurrence (step S103).

(3)解析に必要なログ17それぞれに対して以降の処理を実施する(ステップS104、S105)。 (3) Perform subsequent processing for each log 17 required for analysis (steps S104 and S105).

(4)解析に必要なログ17に対応する解析ログ74が解析ログフォルダ73に存在しない場合(ステップS106のNO)、解析ログ74のファイルを作成し(S107)、解析に必要なログ17に対応する共有メモリ31の管理情報34を、解析ログ74の先頭に書き込み(S108)、また、共有メモリ31にあるログ17を解析ログ74に追記する(S109)。解析ログ74に書き込む共有メモリ31のログ17のサイズとして、共有メモリ31の管理情報34にある書き込み位置の値を使用する。 (4) If the analysis log 74 corresponding to the log 17 required for analysis does not exist in the analysis log folder 73 (NO in step S106), a file for the analysis log 74 is created (S107), and the log 17 required for analysis The management information 34 of the corresponding shared memory 31 is written to the beginning of the analysis log 74 (S108), and the log 17 in the shared memory 31 is added to the analysis log 74 (S109). As the size of the log 17 of the shared memory 31 to be written in the analysis log 74, the value of the write position in the management information 34 of the shared memory 31 is used.

(5)一方、解析に必要なログ17に対応する解析ログ74が解析ログフォルダ73に存在する場合(ステップS106のYES)、解析ログ74の管理情報75と、共有メモリ31の管理情報34とを比較して(S110)、共有メモリ31のログ17と、解析ログ74のログ76との間の差分の有無を判定する。 (5) On the other hand, if the analysis log 74 corresponding to the log 17 required for analysis exists in the analysis log folder 73 (YES in step S106), the management information 75 of the analysis log 74 and the management information 34 of the shared memory 31 are compared (S110) to determine whether there is a difference between the log 17 of the shared memory 31 and the log 76 of the analysis log 74. FIG.

差分があるかの判断は、共有メモリ31の管理情報34と、解析ログ74の管理情報75に記録されているループ回数及び書き込み位置を使用する。解析ログ74と共有メモリ31のループ回数と書き込み位置が一致するということは、差分がないと考えることが出来る。共有メモリ31のループ回数と書き込み位置が解析ログ74のよりも大きければ、差分が発生していると考えられ、その差分76Bだけ解析ログ74に追記する。 Whether or not there is a difference is determined using the loop count and write position recorded in the management information 34 of the shared memory 31 and the management information 75 of the analysis log 74 . It can be considered that there is no difference between the analysis log 74 and the shared memory 31 because the number of loops and the write position match. If the number of loops in the shared memory 31 and the write position are larger than those in the analysis log 74 , it is considered that a difference has occurred, and only the difference 76B is added to the analysis log 74 .

(6)解析ログ74の管理情報75と、共有メモリ31の管理情報34のループ回数が一致し(S111のYES)、かつ、共有メモリ31の書き込み位置と解析ログ74の位置が一致する場合(S112のNO)、すなわち、共有メモリ31のログ17と、解析ログ74のログ76との間に差分が無い場合、当該ログ17を解析ログ74にコピーする必要はないので、当該ログ17の処理はスキップして、ステップS104に戻る。 (6) When the management information 75 of the analysis log 74 and the loop count of the management information 34 of the shared memory 31 match (YES in S111), and the write position of the shared memory 31 and the position of the analysis log 74 match ( NO in S112), that is, if there is no difference between the log 17 of the shared memory 31 and the log 76 of the analysis log 74, there is no need to copy the log 17 to the analysis log 74, so the processing of the log 17 is performed. is skipped and the process returns to step S104.

(7)一方、解析ログ74の管理情報75と、共有メモリ31の管理情報34のループ回数が一致し(S111のYES)、かつ、共有メモリ31の書き込み位置が解析ログ74の位置より大きい場合(S112のYES)、すなわち、共有メモリ31のログ17と、解析ログ74のログ76との間に差分が有る場合、共有メモリ31の書き込み位置から解析ログ74の書き込み位置を引いた数(差分76B)だけ、共有メモリ31のログ17から、解析ログ74へコピーする(S113)。さらに共有メモリ31の管理情報34で解析ログ74の管理情報75を更新すると(S114)、当該ログ17の処理が完了してステップS104に戻る。 (7) On the other hand, when the management information 75 of the analysis log 74 and the loop count of the management information 34 of the shared memory 31 match (YES in S111) and the write position of the shared memory 31 is larger than the position of the analysis log 74; (YES in S112), that is, if there is a difference between the log 17 of the shared memory 31 and the log 76 of the analysis log 74, the number obtained by subtracting the writing position of the analysis log 74 from the writing position of the shared memory 31 (difference 76B) is copied from the log 17 of the shared memory 31 to the analysis log 74 (S113). Further, when the management information 75 of the analysis log 74 is updated with the management information 34 of the shared memory 31 (S114), the processing of the log 17 is completed and the process returns to step S104.

(8)また、共有メモリ31のループ回数が解析ログ74のものよりも大きい場合(ステップS111のNO→ステップS115のYES)には、共有メモリ31にあるログ17を、解析ログファイルに追記する(S116)。さらに共有メモリ31の管理情報34で解析ログ74の管理情報75を更新すると(S114)、当該ログ17の処理が完了してステップS104に戻る。 (8) If the number of loops in the shared memory 31 is greater than that in the analysis log 74 (NO in step S111→YES in step S115), the log 17 in the shared memory 31 is added to the analysis log file. (S116). Further, when the management information 75 of the analysis log 74 is updated with the management information 34 of the shared memory 31 (S114), the processing of the log 17 is completed and the process returns to step S104.

共有メモリ31のループ回数が解析ログ74のものよりも小さい場合(ステップS111のNO→ステップS115のNO)には、当該ログ17の処理はスキップして、ステップS104に戻る。 If the number of loops in the shared memory 31 is smaller than that in the analysis log 74 (NO in step S111→NO in step S115), the processing of the log 17 is skipped and the process returns to step S104.

なお、ステップS116の処理では、共有メモリ31のループ回数が解析ログ74のものよりも大きい場合、共有メモリ31の書き込み位置以降にあるエリアのログは、有効なログとも、無効なログとも考えられる。このため、ステップS116では、まず共有メモリ31の書き込み位置以降にあるエリアのログの有効、無効を判断し、有効なログと判断した場合は順序性を考えて、先に共有メモリ31の書き込み位置以降の解析ログ74に追記してから、共有メモリ31の書き込み位置のログ17を追記してもよい。そのロジックについて図14を参照してさらに説明する。 In the process of step S116, if the number of loops in the shared memory 31 is greater than that of the analysis log 74, the logs in the area after the write position in the shared memory 31 can be considered as valid logs or invalid logs. . Therefore, in step S116, it is first determined whether the log in the area after the write position in the shared memory 31 is valid or invalid. After adding to the subsequent analysis log 74, the log 17 of the write position in the shared memory 31 may be added. The logic is further described with reference to FIG.

図14は、共有メモリ31のループ回数が解析ログ74よりも大きい場合の解析ログ74への書き込みロジックのフローチャートである。 FIG. 14 is a flow chart of logic for writing to the analysis log 74 when the number of loops in the shared memory 31 is greater than the analysis log 74 .

共有メモリ31の書き込み位置以降にあるエリアのログ17が有効なエリアかの判断は、共有メモリ31と解析ログ74のループ回数と書き込み位置を比較することで判定する。 Whether or not the log 17 in the area after the write position of the shared memory 31 is valid is determined by comparing the number of loops and the write position of the shared memory 31 and the analysis log 74 .

ループ回数の差が1より大きければ(S201のYES)、共有メモリ31の全エリアが有効と考えられる。この場合、順序性を考えて、共有メモリ31の書き込み位置より後ろのエリア、以前のエリアの順で解析ログ74に追記する(S202、S203)。 If the loop count difference is greater than 1 (YES in S201), all areas of the shared memory 31 are considered valid. In this case, considering the order, the area after the write position in the shared memory 31 and the area before it are added to the analysis log 74 in this order (S202, S203).

一方、ループ回数の差が1の場合(S201のNO)、共有メモリ31と解析ログ74の書き込み位置を比較して、大きいほうの値以降のエリアが有効だと考えられる。解析ログ74の書き込み位置が共有メモリ31より大きい場合(S204のYES)には、順序性を考えて、解析ログ74の書き込み位置より後の共有メモリ31のエリアを解析ログ74に追記した後、共有メモリの書き込み位置以前のエリアを解析ログ74に追記する(S205、S206)。共有メモリ31の書き込み位置が解析ログ74より大きい場合には(S204のNO)、ステップS202、S203の処理を行う。 On the other hand, if the difference in the number of loops is 1 (NO in S201), the writing positions of the shared memory 31 and the analysis log 74 are compared, and the area after the larger value is considered valid. If the write position of the analysis log 74 is larger than the shared memory 31 (YES in S204), considering the order, the area of the shared memory 31 after the write position of the analysis log 74 is added to the analysis log 74. The area before the write position of the shared memory is added to the analysis log 74 (S205, S206). If the write position in the shared memory 31 is larger than the analysis log 74 (NO in S204), steps S202 and S203 are processed.

なお、ループ回数の差が0の場合(S111のYES)や、マイナスの場合(S111のNO→S115のNO)は、図13のフローで判定しているので、本フローでは除外する。 If the difference in the number of loops is 0 (YES in S111) or negative (NO in S111→NO in S115), the determination is made in the flow of FIG.

上述した画像形成装置管理アプリ14、ログ管理アプリ15、ログ出力ライブラリ16、OS11の各機能は、CPU2a、SOC2、メモリ3等のハードウェア上に所定のコンピュータソフトウェア(エラー解析支援プログラム)を読み込ませることにより、CPU2aの制御のもとでSOC2、操作部6を動作させるとともに、メモリ3やHDD4におけるデータの読み出し及び書き込みを行うことで実現される。すなわち、本実施形態のエラー解析支援プログラムをコンピュータ上で実行させることで、画像形成装置1は、図2の画像形成装置管理アプリ14、ログ管理アプリ15、ログ出力ライブラリ16、OS11として機能する。 Each function of the image forming apparatus management application 14, the log management application 15, the log output library 16, and the OS 11 described above causes predetermined computer software (error analysis support program) to be read into hardware such as the CPU 2a, SOC 2, and memory 3. As a result, the SOC 2 and the operation unit 6 are operated under the control of the CPU 2a, and data is read from and written to the memory 3 and the HDD 4. That is, the image forming apparatus 1 functions as the image forming apparatus management application 14, the log management application 15, the log output library 16, and the OS 11 shown in FIG. 2 by executing the error analysis support program of the present embodiment on a computer.

図15を参照して本実施形態に係る画像形成装置1の効果を説明する。図15は、本実施形態に係る画像形成装置1の解析ログ取得処理の概略構成を説明する図である。本実施形態の画像形成装置1は、アプリケーション12が出力したログ17を保持するメモリ3と、ログ17が所定量以上蓄積したときにメモリ3から出力される蓄積ログ41を格納するHDD4とを備える。蓄積ログ41は、画像形成装置1のログ管理アプリ15によって、メモリ3及びHDD4とは異なる他の記憶装置であるSDカード7に書き出される。そして特に本実施形態では、図15に示すように、蓄積ログ41をSDカード7へ書き出す処理中にエラーが発生した場合には、ログ管理アプリ15は、メモリ3に記憶されているログ17をエラー解析用の解析ログ74としてSDカード7へ書き出す。 Effects of the image forming apparatus 1 according to the present embodiment will be described with reference to FIG. FIG. 15 is a diagram illustrating a schematic configuration of analysis log acquisition processing of the image forming apparatus 1 according to this embodiment. The image forming apparatus 1 of this embodiment includes a memory 3 that holds a log 17 output by an application 12, and an HDD 4 that stores an accumulation log 41 output from the memory 3 when the log 17 accumulates a predetermined amount or more. . The accumulated log 41 is written by the log management application 15 of the image forming apparatus 1 to the SD card 7 which is another storage device different from the memory 3 and the HDD 4 . Especially in this embodiment, as shown in FIG. 15, when an error occurs during the process of writing the accumulation log 41 to the SD card 7, the log management application 15 reads the log 17 stored in the memory 3. It is written to the SD card 7 as an analysis log 74 for error analysis.

この構成により、蓄積ログ41のバックアップ中に発生したエラーの原因を調べるための解析ログ74を取得することが可能となるので、ユーザによるエラーの解析作業を好適に支援でき、エラーを解消するための作業効率を向上できる。 With this configuration, it is possible to acquire the analysis log 74 for investigating the cause of an error that occurred during the backup of the accumulation log 41. Therefore, it is possible to suitably support the error analysis work by the user, and to eliminate the error. can improve work efficiency.

また、本実施形態の画像形成装置1では、ログ管理アプリ15は、エラーが発生した場合、エラーの種類を特定し、種類に応じてエラー解析に必要なログ17A、17B、17Cの種類を特定し、特定した種類のログ17をメモリ3からSDカード7へ書き出す。この構成により、多種のエラーそれぞれの解析に必要なログ17を個別に取得でき、また、解析に不要なログ17は取得しないので、過不足なく解析ログ74の取得が可能となる。これにより、解析ログ74を書き出すSDカード7の容量も抑えることができる。 Further, in the image forming apparatus 1 of the present embodiment, when an error occurs, the log management application 15 identifies the type of error, and identifies the types of logs 17A, 17B, and 17C required for error analysis according to the type. Then, the specified type of log 17 is written from the memory 3 to the SD card 7 . With this configuration, the logs 17 necessary for analyzing various types of errors can be individually acquired, and since the logs 17 not required for analysis are not acquired, the analysis log 74 can be acquired without excess or deficiency. As a result, the capacity of the SD card 7 for writing the analysis log 74 can also be suppressed.

また、本実施形態の画像形成装置1では、ログ管理アプリ15は、解析ログ74を書き出すときに、SDカード7に既に同種の解析ログ74がある場合、書き込み済みの解析ログ76Aと、現在のメモリ3に保持されるログ17との差分76Bを、SDカード7に書き出す。この構成により、SDカード7に格納する解析ログ74の内容に重複が生じることを抑制できるので、解析ログ74を書き出すSDカード7の容量をより一層抑えることができる。 Further, in the image forming apparatus 1 of the present embodiment, when the log management application 15 writes the analysis log 74, if the same type of analysis log 74 already exists in the SD card 7, the written analysis log 76A and the current A difference 76 B from the log 17 held in the memory 3 is written to the SD card 7 . With this configuration, the content of the analysis log 74 stored in the SD card 7 can be prevented from being duplicated, so the capacity of the SD card 7 for writing the analysis log 74 can be further reduced.

以上、具体例を参照しつつ本実施形態について説明した。しかし、本開示はこれらの具体例に限定されるものではない。これら具体例に、当業者が適宜設計変更を加えたものも、本開示の特徴を備えている限り、本開示の範囲に包含される。前述した各具体例が備える各要素およびその配置、条件、形状などは、例示したものに限定されるわけではなく適宜変更することができる。前述した各具体例が備える各要素は、技術的な矛盾が生じない限り、適宜組み合わせを変えることができる。 The present embodiment has been described above with reference to specific examples. However, the present disclosure is not limited to these specific examples. Design modifications to these specific examples by those skilled in the art are also included in the scope of the present disclosure as long as they have the features of the present disclosure. Each element included in each specific example described above and its arrangement, conditions, shape, etc. are not limited to those illustrated and can be changed as appropriate. As long as there is no technical contradiction, the combination of the elements included in the specific examples described above can be changed as appropriate.

上記実施形態では、実施形態に係る情報処理装置の一例として画像形成装置1を挙げて説明したが、蓄積ログ41のバックアップ処理中にエラーが発生したときに解析ログ74を取得できる機能を備えていればよく、画像形成装置1以外の装置やシステムでもよい。 In the above embodiment, the image forming apparatus 1 is described as an example of the information processing apparatus according to the embodiment. Any device or system other than the image forming device 1 may be used.

上記実施形態では、蓄積ログのバックアップ、及び解析ログを格納する「他の記憶装置」として、画像形成装置1に取り付けられるSDカード7を例示したが、画像形成装置1に有線または無線で通信可能に接続されるSDカード7以外の外部記憶媒体や外部記憶装置でも良いし、ネットワークを介してサーバー等の別のコンピュータ装置に搭載される記憶装置でもよいし、画像形成装置1内のメモリ3、HDD4とは異なる別の記憶装置でもよい。 In the above-described embodiment, the SD card 7 attached to the image forming apparatus 1 was exemplified as the "other storage device" for storing accumulated log backups and analysis logs. It may be an external storage medium or an external storage device other than the SD card 7 connected to, a storage device mounted on another computer device such as a server via a network, or the memory 3 in the image forming apparatus 1, Another storage device different from the HDD 4 may be used.

1 画像形成装置(情報処理装置)
3 メモリ(第1記憶装置)
4 HDD(第2記憶装置)
7 SDカード(他の記憶装置)
15 ログ管理アプリ
17 ログ
41 蓄積ログ
74 解析ログ
1 Image forming device (information processing device)
3 memory (first storage device)
4 HDD (second storage device)
7 SD card (other storage device)
15 Log management application 17 Log 41 Accumulation log 74 Analysis log

特開2016-066214号公報JP 2016-066214 A

Claims (6)

アプリケーションが出力したログを保持する第1記憶装置と、
前記ログが所定量以上蓄積したときに前記第1記憶装置から出力される蓄積ログを格納する第2記憶装置と、
前記第1記憶装置及び前記第2記憶装置とは異なる他の記憶装置に前記蓄積ログを書き出すログ管理部と、
を備え、
前記ログ管理部は、
前記蓄積ログを前記他の記憶装置へ書き出す処理中にエラーが発生した場合、前記第1記憶装置に記憶されているログをエラー解析用の解析ログとして前記他の記憶装置へ書き出す、
情報処理装置。
a first storage device that holds logs output by the application;
a second storage device for storing an accumulation log output from the first storage device when the log accumulates a predetermined amount or more;
a log management unit that writes the accumulation log to a storage device different from the first storage device and the second storage device;
with
The log management unit
If an error occurs during the process of writing the accumulated log to the other storage device, writing the log stored in the first storage device to the other storage device as an analysis log for error analysis;
Information processing equipment.
前記ログ管理部は、
前記エラーが発生した場合、前記エラーの種類を特定し、前記種類に応じてエラー解析に必要なログの種類を特定し、前記特定した種類のログを前記第1記憶装置から前記他の記憶装置へ書き出す、
請求項1に記載の情報処理装置。
The log management unit
when the error occurs, identifying the type of the error, identifying the type of log necessary for error analysis according to the type, and transferring the identified type of log from the first storage device to the other storage device write out to
The information processing device according to claim 1 .
前記ログ管理部は、
前記解析ログを書き出すときに、前記他の記憶装置に既に同種の解析ログがある場合、書き込み済みの解析ログと現在の前記第1記憶装置に保持されるログとの差分を、前記他の記憶装置に書き出す、
請求項1または2に記載の情報処理装置。
The log management unit
When writing the analysis log, if the other storage device already has the same type of analysis log, the difference between the written analysis log and the current log held in the first storage device is stored in the other storage device. write to the device,
The information processing apparatus according to claim 1 or 2.
前記他の記憶装置は、当該情報処理装置に接続可能な外部記憶装置である、
請求項1~3のいずれか1項に記載の情報処理装置。
The other storage device is an external storage device connectable to the information processing device,
The information processing apparatus according to any one of claims 1 to 3.
第1記憶装置と第2記憶装置を備える情報処理装置が実行するエラー解析支援方法であって、
アプリケーションが出力したログを前記第1記憶装置に保持する保持ステップと、
前記ログが所定量以上蓄積したときに前記第1記憶装置から出力される蓄積ログを前記第2記憶装置に格納する格納ステップと、
前記第1記憶装置及び前記第2記憶装置とは異なる他の記憶装置に前記蓄積ログを書き出す蓄積ログ書き出しステップと、
前記蓄積ログ書き出しステップの処理中にエラーが発生した場合、前記第1記憶装置に記憶されているログをエラー解析用の解析ログとして前記他の記憶装置へ書き出す解析ログ書き出しステップと、
を含む、
エラー解析支援方法。
An error analysis support method executed by an information processing device comprising a first storage device and a second storage device,
a holding step of holding the log output by the application in the first storage device;
a storage step of storing an accumulated log output from the first storage device when the log accumulates a predetermined amount or more in the second storage device;
an accumulation log writing step of writing the accumulation log to another storage device different from the first storage device and the second storage device;
an analysis log writing step of writing the log stored in the first storage device to the other storage device as an analysis log for error analysis when an error occurs during the processing of the accumulated log writing step;
including,
Error analysis support method.
第1記憶装置と第2記憶装置を備える情報処理装置のためのエラー解析支援プログラムであって、
コンピュータに、
アプリケーションが出力したログを前記第1記憶装置に保持する保持機能と、
前記ログが所定量以上蓄積したときに前記第1記憶装置から出力される蓄積ログを前記第2記憶装置に格納する格納機能と、
前記第1記憶装置及び前記第2記憶装置とは異なる他の記憶装置に前記蓄積ログを書き出す蓄積ログ書き出し機能と、
前記蓄積ログ書き出し機能の処理中にエラーが発生した場合、前記第1記憶装置に記憶されているログをエラー解析用の解析ログとして前記他の記憶装置へ書き出す解析ログ書き出し機能と、
を実現させるためのエラー解析支援プログラム。
An error analysis support program for an information processing device comprising a first storage device and a second storage device,
to the computer,
a holding function for holding a log output by an application in the first storage device;
a storage function for storing, in the second storage device, an accumulated log output from the first storage device when the log accumulates a predetermined amount or more;
an accumulation log writing function for writing the accumulation log to another storage device different from the first storage device and the second storage device;
an analysis log writing function for writing the log stored in the first storage device to the other storage device as an analysis log for error analysis when an error occurs during processing of the accumulation log writing function;
An error analysis support program for realizing
JP2018220884A 2018-11-27 2018-11-27 Information processing device, error analysis support method, and error analysis support program Active JP7110942B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018220884A JP7110942B2 (en) 2018-11-27 2018-11-27 Information processing device, error analysis support method, and error analysis support program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018220884A JP7110942B2 (en) 2018-11-27 2018-11-27 Information processing device, error analysis support method, and error analysis support program

Publications (2)

Publication Number Publication Date
JP2020086981A JP2020086981A (en) 2020-06-04
JP7110942B2 true JP7110942B2 (en) 2022-08-02

Family

ID=70908263

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018220884A Active JP7110942B2 (en) 2018-11-27 2018-11-27 Information processing device, error analysis support method, and error analysis support program

Country Status (1)

Country Link
JP (1) JP7110942B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014006772A (en) 2012-06-26 2014-01-16 Nec Corp Failure monitoring type communication apparatus, failure monitoring recording method for communication apparatus, and program therefor
JP2016095652A (en) 2014-11-13 2016-05-26 富士通株式会社 Data storage method, and information processing device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014006772A (en) 2012-06-26 2014-01-16 Nec Corp Failure monitoring type communication apparatus, failure monitoring recording method for communication apparatus, and program therefor
JP2016095652A (en) 2014-11-13 2016-05-26 富士通株式会社 Data storage method, and information processing device

Also Published As

Publication number Publication date
JP2020086981A (en) 2020-06-04

Similar Documents

Publication Publication Date Title
US10241873B2 (en) Headstart restore of first volume to a second volume
US7882315B2 (en) Snapshot mechanism in a data processing system and method and apparatus thereof
JP4363676B2 (en) Computer system
JP4321705B2 (en) Apparatus and storage system for controlling acquisition of snapshot
US7055010B2 (en) Snapshot facility allowing preservation of chronological views on block drives
US8732121B1 (en) Method and system for backup to a hidden backup storage
US20060282471A1 (en) Error checking file system metadata while the file system remains available
US8589913B2 (en) Tracking block-level writes
US7774636B2 (en) Method and system for kernel panic recovery
US20070185936A1 (en) Managing deletions in backup sets
WO2011024688A1 (en) Firmware update system, and information apparatus, as well as program
US8380660B2 (en) Database system, database update method, database, and database update program
US11630737B2 (en) Virtual replication of unstructured data
US20110209134A1 (en) Information processing apparatus
JP2000138692A (en) Mac address management system, mac address management method and storage medium
JP5250955B2 (en) Data processing system backup control apparatus and system
US20170068603A1 (en) Information processing method and information processing apparatus
JP7110942B2 (en) Information processing device, error analysis support method, and error analysis support program
CN111159156A (en) Backup method and device for SQLite database
US10228879B1 (en) System and method for backup and restore of offline disks in mainframe computers
US8495315B1 (en) Method and apparatus for supporting compound disposition for data images
JP2008171241A (en) Backup device and restoration method
US10671488B2 (en) Database in-memory protection system
US20210357124A1 (en) Security system, host system, and backup method
US20170357545A1 (en) Information processing apparatus and information processing method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210819

TRDD Decision of grant or rejection written
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220615

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20220621

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220704

R151 Written notification of patent or utility model registration

Ref document number: 7110942

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151