JP2008009854A - Log control device, image forming device, log control method and program - Google Patents

Log control device, image forming device, log control method and program Download PDF

Info

Publication number
JP2008009854A
JP2008009854A JP2006181434A JP2006181434A JP2008009854A JP 2008009854 A JP2008009854 A JP 2008009854A JP 2006181434 A JP2006181434 A JP 2006181434A JP 2006181434 A JP2006181434 A JP 2006181434A JP 2008009854 A JP2008009854 A JP 2008009854A
Authority
JP
Japan
Prior art keywords
log
storage
storage unit
control device
stored
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
JP2006181434A
Other languages
Japanese (ja)
Inventor
Yasuhito Matsukawa
泰人 松川
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP2006181434A priority Critical patent/JP2008009854A/en
Publication of JP2008009854A publication Critical patent/JP2008009854A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a log control device, capable of efficiently storing logs useful for failure analysis. <P>SOLUTION: In the log control program 30, a data receiving part 300 or the like performs predetermined processing to input image data, and generates and stores a log for the processing in a first log storage part 306. A state determination part 308 determines whether the state of the data receiving part 300 or the like is normal or not, and a log storage part 310 confirms, when abnormal state is detected, a collection period and a collection level corresponding to an error code generated in reference to a log table, acquires logs generated before the collection period to the present which have a significance corresponding to the collection level among the logs stored in the first log storage part 306, and stores them in a second log storage part 312. The first log storage part 306 is achieved by a memory, and the second log storage part 312 is achieved by a nonvolatile storage device. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、処理内容を記録するログの制御を行うログ制御装置に関する。   The present invention relates to a log control device that controls a log for recording processing contents.

ログは、コンピュータの処理内容の記録であるので、発生した障害を解析するのに有用である。しかしながら、障害がいつ発生するか予測することは困難であり、障害のためにログ情報を全て保存しておくと、膨大な記憶容量が必要となる。
特許文献1では、同一エラーが既に登録されている場合、発生回数のみをカウントし、既に登録されているデータを流用することにより、保存されるログを必要最小限に抑える手法が開示されている。また、単位時間当たりのエラー発生頻度が所定値を超えている場合、正常ログの書き込みを抑止することにより、記憶領域を効率的に使用することが開示されている。
Since the log is a record of the processing contents of the computer, it is useful for analyzing a failure that has occurred. However, it is difficult to predict when a failure will occur, and if all log information is saved due to the failure, a huge storage capacity is required.
Japanese Patent Application Laid-Open No. 2004-228688 discloses a method of minimizing the number of logs to be saved by counting only the number of occurrences when the same error has already been registered and diverting the already registered data. . In addition, it is disclosed that when the error occurrence frequency per unit time exceeds a predetermined value, the storage area is efficiently used by suppressing writing of a normal log.

特開平11−306050号公報Japanese Patent Laid-Open No. 11-306050

しかしながら、エラー発生時の情報を収集しても、障害を解析できないことがある。   However, it may not be possible to analyze the failure even if the information at the time of error occurrence is collected.

本発明は、上述した背景からなされたものであり、障害解析に有用なログを効率よく保存することができるログ制御装置を提供することを目的とする。   The present invention has been made from the above-described background, and an object thereof is to provide a log control device capable of efficiently storing a log useful for failure analysis.

上記目的を達成するために、本発明に係るログ制御装置は、時刻を含むログを生成するログ生成手段と、前記ログ生成手段により生成されたログを記憶する第1の記憶手段と、ログを記憶し、不揮発性を有する第2の記憶手段と、前記第1の記憶手段に記憶されているログのうち所定期間に含まれるものを、前記第2の記憶手段に格納するログ格納手段とを有する。   To achieve the above object, a log control device according to the present invention includes a log generation unit that generates a log including time, a first storage unit that stores a log generated by the log generation unit, and a log. Second storage means for storing and having non-volatility, and log storage means for storing, in the second storage means, logs included in a predetermined period among logs stored in the first storage means Have.

好適には、前記ログ生成手段は、重要度をさらに含むログを生成し、前記ログ格納手段は、前記ログ生成手段により生成されたログに含まれる重要度に基づいてログを格納する。
好適には、前記ログ生成手段は、ノーマル及びエラーの少なくともいずれかにより表される種別をさらに含むログを生成する。
Preferably, the log generation unit generates a log further including an importance level, and the log storage unit stores the log based on the importance level included in the log generated by the log generation unit.
Preferably, the log generation unit generates a log further including a type represented by at least one of normal and error.

好適には、前記ログ格納手段は、所定の契機に、前記第1の記憶手段に記憶されているログのうち種別がノーマルであるログのみを格納する。
好適には、前記ログ格納手段は、前記ログ生成手段が、種別がエラーであるログを生成した場合、ログを格納する。
好適には、前記ログ格納手段は、エラーの種類毎に格納対象のログが規定されている格納指針に基づいてログを格納する。
Preferably, the log storage means stores only a log of a normal type among logs stored in the first storage means at a predetermined opportunity.
Preferably, the log storage unit stores a log when the log generation unit generates a log having an error type.
Preferably, the log storage means stores a log based on a storage guideline that defines a log to be stored for each type of error.

また、好適には、前記格納指針は、入力データに基づいて変更されうる。
また、好適には、前記第1の記憶手段は、前記第2の記憶手段より高速に動作する。
Preferably, the storage guideline can be changed based on input data.
Preferably, the first storage means operates at a higher speed than the second storage means.

本発明に係る画像形成装置は、ログ制御装置を有する画像形成装置であって、前記ログ制御装置は、時刻を含むログを生成するログ生成手段と、前記ログ生成手段により生成されたログを記憶する第1の記憶手段と、ログを記憶し、不揮発性を有する第2の記憶手段と、前記第1の記憶手段に記憶されているログのうち所定期間に含まれるものを、所定の契機に前記第2の記憶手段に格納するログ格納手段とを有する。   An image forming apparatus according to the present invention is an image forming apparatus having a log control device, wherein the log control device stores a log generation unit that generates a log including a time, and a log generated by the log generation unit. The first storage means for storing the log, the second storage means for storing non-volatility, and the logs stored in the first storage means included in a predetermined period are used as predetermined triggers. Log storage means for storing in the second storage means.

また、本発明に係るログ制御方法は、不揮発性の記憶装置を有するログ制御装置において、時刻を含むログを生成し、前記生成されたログを記憶し、前記記憶されているログのうち所定期間に含まれるものを、前記記憶装置に格納する。   The log control method according to the present invention is a log control device having a non-volatile storage device, generating a log including time, storing the generated log, and a predetermined period of the stored logs. Are stored in the storage device.

さらに、本発明に係るプログラムは、コンピュータと、不揮発性の記憶装置とを有するログ制御装置において、時刻を含むログを生成するログ生成ステップと、前記生成されたログを記憶する記憶ステップと、前記記憶されているログのうち所定期間に含まれるものを、前記記憶装置に格納するログ格納ステップとを前記ログ制御装置のコンピュータに実行させる。   Furthermore, a program according to the present invention includes a log generation step of generating a log including time in a log control device having a computer and a nonvolatile storage device, a storage step of storing the generated log, A log storage step of storing, in the storage device, a log included in a predetermined period among stored logs is executed by the computer of the log control device.

本発明のログ制御装置によれば、障害解析に有用なログを効率よく保存することができる。   According to the log control device of the present invention, a log useful for failure analysis can be efficiently saved.

まず、本発明の実施形態に係る画像形成装置10を説明する。
図1は、本発明の実施形態に係る画像形成装置10のハードウェア構成を示す図である。
図1に例示するように、画像形成装置10は、CPU12、メモリ14、不揮発性を有する例えばハードディスクドライブ等の記憶装置16、ネットワークを介して外部のコンピュータなどとデータの送信及び受信を行う通信インタフェース(IF)18、プリントエンジン等を含み、通信IF18を介して入力された画像データ等を記録用紙上に出力する出力装置20、及びタッチパネル又は液晶ディスプレイ並びにキーボードを含むユーザインタフェース(UI)装置22を含む。メモリ14のデータ転送速度は、例えば1〜5GB/秒程度であり、記憶装置16のデータ転送速度は、例えば60〜300MB/秒程度である。これらの構成要素は、バス24を介して互いに接続されている。
First, an image forming apparatus 10 according to an embodiment of the present invention will be described.
FIG. 1 is a diagram illustrating a hardware configuration of an image forming apparatus 10 according to an embodiment of the present invention.
As illustrated in FIG. 1, the image forming apparatus 10 includes a CPU 12, a memory 14, a non-volatile storage device 16 such as a hard disk drive, and a communication interface that transmits and receives data to and from an external computer via a network. (IF) 18, an output device 20 including a print engine and the like, and outputting image data and the like input via the communication IF 18 onto recording paper, and a user interface (UI) device 22 including a touch panel or a liquid crystal display and a keyboard Including. The data transfer speed of the memory 14 is, for example, about 1 to 5 GB / second, and the data transfer speed of the storage device 16 is, for example, about 60 to 300 MB / second. These components are connected to each other via a bus 24.

図2は、本発明のログ制御方法を実現するログ制御プログラム30の機能構成を示す図である
図2に示すように、ログ制御プログラム30は、データ受付部300、画像処理部302、像形成制御部304、第1のログ記憶部306、状態判定部308、ログ格納部310、第2のログ記憶部312及び指針受付部314を有する。ログ制御プログラム30は、画像形成装置10のメモリ14にロードされ、CPU12により実行されてログ制御装置を構成する。ログ制御プログラム30は、これらの構成要素により、時刻を含むログを生成し、生成されたログを例えばメモリ14(図1)に記憶し、この記憶されているログのうち所定期間に含まれるものを記憶装置16に格納する。
なお、ログ制御プログラム30の全部又は一部の機能は、画像形成装置10に設けられた例えばASICなどのハードウェアにより実現されてもよい。
FIG. 2 is a diagram showing a functional configuration of the log control program 30 for realizing the log control method of the present invention. As shown in FIG. 2, the log control program 30 includes a data receiving unit 300, an image processing unit 302, and an image formation. A control unit 304, a first log storage unit 306, a state determination unit 308, a log storage unit 310, a second log storage unit 312, and a pointer reception unit 314 are included. The log control program 30 is loaded into the memory 14 of the image forming apparatus 10 and is executed by the CPU 12 to constitute a log control apparatus. The log control program 30 generates a log including the time using these components, stores the generated log in, for example, the memory 14 (FIG. 1), and is included in a predetermined period among the stored logs. Is stored in the storage device 16.
Note that all or part of the functions of the log control program 30 may be realized by hardware such as an ASIC provided in the image forming apparatus 10.

ログ制御プログラム30において、データ受付部300は、ネットワークを介して接続されるコンピュータ(不図示)などから画像データを受け付けて画像処理部302に対して出力する。データ受付部300は、処理に応じて呼び出す関数の入出力情報、データの構造体情報、エラー及び障害の発生情報等の内容と時刻とを含むログを生成して後述する第1のログ記憶部306に格納する。   In the log control program 30, the data receiving unit 300 receives image data from a computer (not shown) connected via a network and outputs the image data to the image processing unit 302. The data receiving unit 300 generates a log including contents and time of function input / output information, data structure information, error and failure occurrence information, etc., which are called according to processing, and a first log storage unit which will be described later It stores in 306.

画像処理部302は、データ受付部300から入力された画像データに基づいて画像を描画し、この画像に色変換処理、階調補正処理等の画像処理を施して、像形成制御部304に対して出力する。画像処理部302は、データ受付部300と同様にして、各処理を記録するログを生成して第1のログ記憶部306に格納する。   The image processing unit 302 draws an image based on the image data input from the data receiving unit 300, performs image processing such as color conversion processing and gradation correction processing on the image, and performs image processing on the image formation control unit 304. Output. Similar to the data receiving unit 300, the image processing unit 302 generates a log for recording each process and stores it in the first log storage unit 306.

像形成制御部304は、画像処理部302から所定の画像処理を施された画像データを入力し、画像が記録用紙上に形成されるように出力装置20(図1)を制御する。像形成制御部304もまた、データ受付部300と同様にログを生成して第1のログ記憶部306に格納する。   The image formation control unit 304 inputs image data subjected to predetermined image processing from the image processing unit 302, and controls the output device 20 (FIG. 1) so that an image is formed on a recording sheet. The image formation control unit 304 also generates a log and stores it in the first log storage unit 306 in the same manner as the data reception unit 300.

このように、データ受付部300、画像処理部302及び像形成制御部304は、時刻を含むログを生成するログ生成手段を構成する。生成されたログには、処理内容及び時刻に加えて、ノーマル及びエラーの少なくともいずれかにより表される種別及び重要度がさらに含まれてもよい。なお、ログの内容については、後で詳細に説明する。   As described above, the data reception unit 300, the image processing unit 302, and the image formation control unit 304 constitute a log generation unit that generates a log including time. The generated log may further include the type and importance represented by at least one of normal and error in addition to the processing content and time. The contents of the log will be described later in detail.

第1のログ記憶部306は、データ受付部300等のログ生成手段により生成されたログを記憶する。第1のログ記憶部306は、メモリ14により実現され、第2のログ記憶部312より高速に動作する。第1のログ記憶部306は、所定の容量の記憶手段であり、当該容量が全て使い尽くされた場合には再び最初から使われるようにしてデータを記憶する。即ち、第1のログ記憶部306は、いわゆるサイクリックに用いられる。   The first log storage unit 306 stores a log generated by log generation means such as the data reception unit 300. The first log storage unit 306 is realized by the memory 14 and operates at a higher speed than the second log storage unit 312. The first log storage unit 306 is a storage unit having a predetermined capacity, and stores data so that it is used again from the beginning when all the capacity is used up. That is, the first log storage unit 306 is used for so-called cyclic.

第2のログ記憶部312は、第1のログ記憶部306により記憶されているログの少なくとも一部を記憶する。第2のログ記憶部306は、例えばハードディスクドライブ等の記憶装置16により実現される。   The second log storage unit 312 stores at least a part of the log stored by the first log storage unit 306. The second log storage unit 306 is realized by the storage device 16 such as a hard disk drive.

状態判定部308は、データ受付部300、画像処理部302及び像形成制御部304の状態を監視し、データ受付部300等の状態が正常であるか否かを判定し、これらの構成要素の少なくともいずれかの状態が正常でない場合、後述するログ格納部310に対してその旨を出力する。状態判定部308は、データ受付部300等において例えばエラーが発生した場合、その旨をログ格納部310に出力する。   The state determination unit 308 monitors the states of the data reception unit 300, the image processing unit 302, and the image formation control unit 304, determines whether or not the state of the data reception unit 300 and the like is normal, and determines the components. When at least one of the states is not normal, the fact is output to the log storage unit 310 described later. For example, when an error occurs in the data reception unit 300 or the like, the state determination unit 308 outputs a message to that effect to the log storage unit 310.

ログ格納部310は、第1のログ記憶部306に記憶されているログのうち所定期間に含まれるものを第2のログ記憶部312に格納する。ログ格納部310は、データ受付部300等においてエラーが発生した旨の通知を状態判定部308から受け付けた場合(即ち、データ受付部300等が、種別がエラーであるログを生成した場合)、例えば10分前(又は、1分前あるいは1時間前)から現時点までのログ等、所定期間に含まれるログを第2のログ記憶部312に格納する。   The log storage unit 310 stores, in the second log storage unit 312, logs included in the predetermined period among the logs stored in the first log storage unit 306. When the log storage unit 310 receives a notification that an error has occurred in the data reception unit 300 or the like from the state determination unit 308 (that is, when the data reception unit 300 or the like generates a log with an error type), For example, a log included in a predetermined period such as a log from 10 minutes ago (or 1 minute ago or 1 hour ago) to the present time is stored in the second log storage unit 312.

ログ格納部310は、ログに含まれる重要度に基づいて第2のログ記憶部312に格納するログを選定し、当該選定されたログのみを格納する。また、ログ格納部310は、例えば、1時間毎に、1日毎に、あるいは第1のログ記憶部306の記憶容量が使い尽くされて最初から使われ始めた契機に等、所定の契機に、第1のログ記憶部306に記憶されているログのうち種別がノーマルであるログのみを第2のログ記憶部312に格納する。さらに、ログ格納部310は、後述する指針受付部314により入力されるログ格納指針に基づいてログを格納する。   The log storage unit 310 selects a log to be stored in the second log storage unit 312 based on the importance included in the log, and stores only the selected log. In addition, the log storage unit 310 may be used every predetermined time, such as every hour, every day, or when the storage capacity of the first log storage unit 306 is exhausted and started to be used from the beginning. Of the logs stored in the first log storage unit 306, only the logs of the normal type are stored in the second log storage unit 312. Furthermore, the log storage unit 310 stores a log based on a log storage guideline input by a guideline reception unit 314 described later.

指針受付部314は、エラーの種類毎に格納対象のログが規定されているログ格納指針を受け付ける。ログ格納指針には、エラーコードと、このエラーコードが発生した場合に格納対象となるログの重要度並びに収集期間とが含まれる。ログ格納指針は、ユーザによりUI装置22を介して入力されてもよいし、通信IF18を介して外部のコンピュータ等から送信されてもよい。なお、ログ格納指針は、ログテーブルとも呼ばれる。   The guideline receiving unit 314 receives a log storage guideline in which a log to be stored is defined for each error type. The log storage guideline includes an error code, the importance of the log to be stored when this error code occurs, and the collection period. The log storage guideline may be input by the user via the UI device 22 or may be transmitted from an external computer or the like via the communication IF 18. The log storage guideline is also called a log table.

次に、データ受付部300等により生成されるログ、及びログ格納部310により第1のログ記憶部306から第2のログ記憶部312に格納されるログについて説明する。
図3は、画像形成装置10において生成されるログを例示する図であって、図3(A)は、データ受付部300等のログ生成手段により生成されるログを例示し、図3(B)は、ログ格納部310により第2のログ記憶部312に格納されたログを例示する。
図3(A)に例示するように、ログには、処理内容、処理時刻、処理の種別(図中のS)及び重要度(図中のT)が含まれる。
Next, the log generated by the data receiving unit 300 and the log stored in the second log storage unit 312 from the first log storage unit 306 by the log storage unit 310 will be described.
FIG. 3 is a diagram illustrating a log generated in the image forming apparatus 10, and FIG. 3A illustrates a log generated by a log generation unit such as the data receiving unit 300, and FIG. ) Illustrates the log stored in the second log storage unit 312 by the log storage unit 310.
As illustrated in FIG. 3A, the log includes a processing content, a processing time, a processing type (S in the drawing), and an importance (T in the drawing).

種別は、ノーマル及びエラーのいずれかにより表される。種別がエラーである場合、図中のUで示されるように、そのログは、異常が発生した旨を表すものである。例えば、ファイルが存在しなかった場合、又はエラーが発生した際に呼び出される関数が呼び出された場合には、種別がエラーであるログが生成される。なお、種別は、これらの他にも例えばワーニングなどであってもよい。   The type is represented by either normal or error. If the type is an error, the log indicates that an abnormality has occurred, as indicated by U in the figure. For example, when a file does not exist or when a function called when an error occurs is called, a log whose type is error is generated. The type may be, for example, a warning other than these.

重要度は、処理の重要度を例えば3段階で表すものである。ここで、「1」が最も重要度が高く、「3」が最も重要度が低い。重要度が1である処理は、新たなページを作成する、ジョブを終了する等、特定の機能を実行する関数の呼出し等である。重要度が3である処理は、汎用的な関数の呼出し等であり、例えば、ファイルを開く等である。   The importance level represents the importance level of processing in, for example, three levels. Here, “1” has the highest importance, and “3” has the lowest importance. A process with an importance level of 1 is a function call for executing a specific function such as creating a new page or ending a job. A process with an importance level of 3 is a general-purpose function call or the like, such as opening a file.

図3(A)のUで示されるエラーが発生すると、画像処理部302等のログ生成手段の状態が状態判定部308により判定され、異常状態が認識されて、図3(B)に例示するように、第1のログ記憶部306に記憶されているログの一部が、ログ格納部310により第2のログ記憶部312に格納される。本例では、時刻「00:01:23」の時点から現時点までの期間に含まれるログが、第2のログ記憶部312に格納されている。   When an error indicated by U in FIG. 3A occurs, the state of the log generation unit such as the image processing unit 302 is determined by the state determination unit 308, and the abnormal state is recognized, which is illustrated in FIG. 3B. As described above, a part of the log stored in the first log storage unit 306 is stored in the second log storage unit 312 by the log storage unit 310. In this example, the log included in the period from the time “00:01:23” to the current time is stored in the second log storage unit 312.

一方、正常状態が継続している場合、種別がノーマルであるログのみが、所定の契機でログ格納部310により第2のログ記憶部312に格納される。
図4は、画像形成装置10において生成されるログを例示する図であって、図4(A)は、データ受付部300等のログ生成手段により生成されるログを例示し、図4(B)は、正常状態が継続している場合にログ格納部310により第2のログ記憶部312に格納されたログを例示する。
On the other hand, when the normal state continues, only the log whose type is normal is stored in the second log storage unit 312 by the log storage unit 310 at a predetermined opportunity.
FIG. 4 is a diagram illustrating a log generated in the image forming apparatus 10, and FIG. 4A illustrates a log generated by a log generation unit such as the data receiving unit 300, and FIG. ) Illustrates the log stored in the second log storage unit 312 by the log storage unit 310 when the normal state continues.

格納対象のログは、重要度に基づいて識別されてもよい。この場合、ログ格納部310は、図4(A)に示されるログのうち、図4(B)に示されるように種別がノーマルであって重要度が最も高いログのみを第2のログ記憶部312に格納する。したがって、汎用的な関数等の処理を示すログは格納されず、特定機能の関数の処理を示すログだけが格納される。このため、第2のログ記憶部312で必要とされる容量は、削減されることができる。   The log to be stored may be identified based on the importance. In this case, the log storage unit 310 stores only the log having the normal type and the highest importance as shown in FIG. 4B among the logs shown in FIG. Stored in the unit 312. Therefore, a log indicating processing of a general-purpose function or the like is not stored, and only a log indicating processing of a function having a specific function is stored. For this reason, the capacity required for the second log storage unit 312 can be reduced.

図5は、エラーの種類毎に格納対象のログを規定するログテーブルを例示する図である。
図5に例示するように、ログテーブルには、エラーコード、収集レベル及び収集期間が含まれる。エラーコードは、発生したエラーの種類を表す識別子である。収集レベルは、当該エラーコードのエラーが発生した場合に第2のログ記憶部312への格納対象となるログの重要度を表す。例えば、収集レベルが「すべて」である場合には重要度が「1」、「2」及び「3」のログが格納され、収集レベルが「2以上」である場合には重要度が「1」及び「2」のログが格納される。収集期間は、エラー発生時に格納対象となるログが含まれる期間を表す。例えば、収集期間が「1分」である場合、1分前から現時点までのログが格納される。
FIG. 5 is a diagram illustrating a log table that defines a log to be stored for each type of error.
As illustrated in FIG. 5, the log table includes an error code, a collection level, and a collection period. The error code is an identifier indicating the type of error that has occurred. The collection level represents the importance of a log to be stored in the second log storage unit 312 when an error with the error code occurs. For example, when the collection level is “all”, logs with importance “1”, “2”, and “3” are stored, and when the collection level is “2 or higher”, the importance is “1”. ”And“ 2 ”are stored. The collection period represents a period in which a log to be stored when an error occurs is included. For example, when the collection period is “1 minute”, logs from one minute before to the current time are stored.

ログテーブルは、ログ格納部310により保持されている。エラーが発生した場合、ログ格納部310は、ログテーブルを参照し、第2のログ記憶部312へ格納すべきログの期間並びに重要度を決定する。したがって、格納対象となるログは、画像形成装置10毎に設定されることができるので、必要なログのみが効率よく保存されることができる。なお、ログテーブルには、項目「収集種別」がさらに含まれてもよい。この場合、該当する種別のログ(例えば、種別がノーマルであるログ又は種別がエラーであるログなど)のみが格納されることができる。   The log table is held by the log storage unit 310. When an error occurs, the log storage unit 310 refers to the log table and determines the log period and importance to be stored in the second log storage unit 312. Therefore, since the log to be stored can be set for each image forming apparatus 10, only the necessary log can be efficiently saved. The log table may further include an item “collection type”. In this case, only a log of a corresponding type (for example, a log whose type is normal or a log whose type is error) can be stored.

ログテーブルは、入力データに基づいて変更されてもよい。この場合、ログテーブル情報は、データ受付部300に入力された画像データに付加されている。データ受付部300は、ログテーブル情報が付加された画像データを受け付けると、当該ログテーブル情報をログ格納部310に対して出力する。ログ格納部310は、データ受付部300から入力したログテーブル情報に基づいてログテーブルを更新する。   The log table may be changed based on input data. In this case, the log table information is added to the image data input to the data receiving unit 300. When the data reception unit 300 receives the image data to which the log table information is added, the data reception unit 300 outputs the log table information to the log storage unit 310. The log storage unit 310 updates the log table based on the log table information input from the data reception unit 300.

このログテーブルは、当該画像データを処理する間のみ有効であってもよいし、当該画像データが受け付けられた後の全ての処理に対して有効であってもよい。これにより、格納対象となるログが入力データ毎に変更されることができ、データによって発生しやすいエラーログが、より詳細に第2のログ記憶部312に格納されることができる。   This log table may be valid only during the processing of the image data, or may be valid for all processes after the image data is received. Thereby, the log to be stored can be changed for each input data, and an error log that is likely to be generated by the data can be stored in the second log storage unit 312 in more detail.

図6は、本発明の実施形態に係るログ制御方法を実現するログ制御プログラム30の全体動作(S10)を示すフローチャートである。
図6に示すように、ステップ100(S100)において、ログ制御プログラム30のデータ受付部300、画像処理部302及び像形成制御部304は、入力された画像データに対して所定の処理を施し、これらの処理のそれぞれに関するログを生成して第1のログ記憶部306に格納する。
FIG. 6 is a flowchart showing the overall operation (S10) of the log control program 30 for realizing the log control method according to the embodiment of the present invention.
As shown in FIG. 6, in step 100 (S100), the data receiving unit 300, the image processing unit 302, and the image formation control unit 304 of the log control program 30 perform predetermined processing on the input image data, A log relating to each of these processes is generated and stored in the first log storage unit 306.

ステップ102(S102)において、状態判定部308は、データ受付部300等の状態が正常であるか否かを判定し、異常状態であった場合(例えば、データ受付部300等にエラーが発生して異常状態になった場合)にはS104の処理に進み、正常状態であった場合にはS110の処理に進む。   In step 102 (S102), the state determination unit 308 determines whether or not the state of the data reception unit 300 or the like is normal. If the state is abnormal (for example, an error occurs in the data reception unit 300 or the like). If the result is abnormal), the process proceeds to S104, and if it is normal, the process proceeds to S110.

ステップ104(S104)において、ログ格納部310は、ログテーブルを参照し、発生したエラーコードに対応する収集期間及び収集レベルを確認する。
ステップ106(S106)において、ログ格納部310は、第1のログ記憶部306に記憶されているログのうち、当該収集期間前から現在までのログであって当該収集レベルに該当する重要度のものを取得する。
ステップ108(S108)において、ログ格納部310は、取得されたログを第2のログ記憶部312に格納する。
In step 104 (S104), the log storage unit 310 refers to the log table and confirms the collection period and the collection level corresponding to the generated error code.
In step 106 (S106), the log storage unit 310 is a log from the previous collection period to the present among the logs stored in the first log storage unit 306, and the importance level corresponding to the collection level. Get things.
In step 108 (S108), the log storage unit 310 stores the acquired log in the second log storage unit 312.

一方、ステップ110(S110)において、ログ格納部310は、所定期間経過したか否か(例えば、第1のログ記憶部306の記憶領域を最後まで使い切って最初から使い始めたか否か)を判定し、所定期間経過した場合にはS112の処理に進み、そうでない場合にはS100の処理に戻る。
ステップ112(S112)において、ログ格納部310は、第1のログ記憶部306に記憶されているログのうち、種別がノーマルであって重要度が最も高いログを取得する。そして、S108の処理で、取得されたログが第2のログ記憶部312に格納される。
On the other hand, in step 110 (S110), the log storage unit 310 determines whether or not a predetermined period has elapsed (for example, whether or not the storage area of the first log storage unit 306 has been used up to the end and started to be used from the beginning). If the predetermined period has elapsed, the process proceeds to S112. Otherwise, the process returns to S100.
In step 112 (S112), the log storage unit 310 acquires a log of the normal type and the highest importance among the logs stored in the first log storage unit 306. In step S108, the acquired log is stored in the second log storage unit 312.

以上説明したように、本発明に係るログ制御装置は、時刻を含むログを生成するログ生成手段と、前記ログ生成手段により生成されたログを記憶する第1の記憶手段と、ログを記憶し、不揮発性を有する第2の記憶手段と、前記第1の記憶手段に記憶されているログのうち所定期間に含まれるものを、前記第2の記憶手段に格納するログ格納手段とを有する。これにより、障害解析に有用なログを効率よく保存することができる。   As described above, the log control device according to the present invention stores a log, a log generation unit that generates a log including time, a first storage unit that stores a log generated by the log generation unit, and a log. Second storage means having non-volatility, and log storage means for storing, in the second storage means, logs included in a predetermined period among the logs stored in the first storage means. Thereby, a log useful for failure analysis can be efficiently saved.

また、ログ制御装置は、重要度をさらに含むログを生成し、当該生成されたログに含まれる重要度に基づいてログを格納する。これにより、重要度が低いログは第2の記憶手段に格納されないので、ログの保存効率が向上する。   In addition, the log control device generates a log further including the importance, and stores the log based on the importance included in the generated log. Thereby, since the log with low importance is not stored in the second storage unit, the efficiency of saving the log is improved.

また、ログ制御装置は、ノーマル及びエラーの少なくともいずれかにより表される種別をさらに含むログを生成し、所定の契機に、前記第1の記憶手段に記憶されているログのうち種別がノーマルであるログのみを格納する。また、ログ制御装置は、種別がエラーであるログを生成した場合、ログを格納する。これにより、ログの保存効率がさらに向上する。   In addition, the log control device generates a log that further includes a type represented by at least one of normal and error, and the type is normal among the logs stored in the first storage unit at a predetermined opportunity. Store only certain logs. In addition, when the log control device generates a log whose type is error, the log control device stores the log. This further improves log storage efficiency.

また、ログ制御装置は、エラーの種類毎に格納対象のログが規定されている格納指針に基づいてログを格納し、格納指針は入力データに基づいて変更されうる。これにより、入力される印刷ジョブ毎に、格納対象となるログを設定できるので、ログの保存効率がさらに向上する。   Further, the log control device stores a log based on a storage guideline that defines a log to be stored for each type of error, and the storage guideline can be changed based on input data. As a result, a log to be stored can be set for each input print job, and the log storage efficiency is further improved.

さらに、ログ制御装置において、前記第1の記憶手段は、前記第2の記憶手段より高速に動作する。これにより、通常運用時におけるログ出力による性能劣化を抑えることができる。また、障害発生時には必要最小限のログだけが第2の記憶手段に格納されるので、障害発生時においても性能劣化を抑えることができる。   Further, in the log control device, the first storage means operates at a higher speed than the second storage means. Thereby, performance degradation due to log output during normal operation can be suppressed. Also, since only the minimum necessary log is stored in the second storage means when a failure occurs, performance degradation can be suppressed even when a failure occurs.

本発明の実施形態に係る画像形成装置10のハードウェア構成を示す図である。1 is a diagram illustrating a hardware configuration of an image forming apparatus 10 according to an embodiment of the present invention. 本発明のログ制御方法を実現するログ制御プログラム30の機能構成を示す図であるIt is a figure which shows the function structure of the log control program 30 which implement | achieves the log control method of this invention. 画像形成装置10において生成されるログを例示する図であって、図3(A)は、データ受付部300等のログ生成手段により生成されるログを例示し、図3(B)は、ログ格納部310により第2のログ記憶部312に格納されたログを例示する。FIG. 3A is a diagram illustrating a log generated in the image forming apparatus 10, and FIG. 3A illustrates a log generated by a log generation unit such as the data receiving unit 300, and FIG. The log stored in the 2nd log memory | storage part 312 by the storage part 310 is illustrated. 画像形成装置10において生成されるログを例示する図であって、図4(A)は、データ受付部300等のログ生成手段により生成されるログを例示し、図4(B)は、正常状態が継続している場合にログ格納部310により第2のログ記憶部312に格納されたログを例示する。4A is a diagram illustrating a log generated in the image forming apparatus 10. FIG. 4A illustrates a log generated by a log generation unit such as the data receiving unit 300, and FIG. The log stored in the second log storage unit 312 by the log storage unit 310 when the state continues is illustrated. エラーの種類毎に格納対象のログを規定するログテーブルを例示する図である。It is a figure which illustrates the log table which prescribes | regulates the log of storage object for every kind of error. 本発明の実施形態に係るログ制御方法を実現するログ制御プログラム30の全体動作(S10)を示すフローチャートである。It is a flowchart which shows the whole operation | movement (S10) of the log control program 30 which implement | achieves the log control method which concerns on embodiment of this invention.

符号の説明Explanation of symbols

10 画像形成装置
12 CPU
14 メモリ
16 記憶装置
18 通信インタフェース
20 出力装置
22 UI装置
30 ログ制御プログラム
300 データ受付部
302 画像処理部
304 像形成制御部
306 第1のログ記憶部
308 状態判定部
310 ログ格納部
312 第2のログ記憶部
314 指針受付部
10 Image forming apparatus 12 CPU
14 memory 16 storage device 18 communication interface 20 output device 22 UI device 30 log control program 300 data reception unit 302 image processing unit 304 image formation control unit 306 first log storage unit 308 state determination unit 310 log storage unit 312 second Log storage unit 314 Guideline reception unit

Claims (11)

時刻を含むログを生成するログ生成手段と、
前記ログ生成手段により生成されたログを記憶する第1の記憶手段と、
ログを記憶し、不揮発性を有する第2の記憶手段と、
前記第1の記憶手段に記憶されているログのうち所定期間に含まれるものを、前記第2の記憶手段に格納するログ格納手段と
を有するログ制御装置。
Log generation means for generating a log including time; and
First storage means for storing a log generated by the log generation means;
A second storage means for storing a log and having non-volatility;
A log control apparatus comprising: log storage means for storing, in the second storage means, logs included in a predetermined period among logs stored in the first storage means.
前記ログ生成手段は、重要度をさらに含むログを生成し、
前記ログ格納手段は、前記ログ生成手段により生成されたログに含まれる重要度に基づいてログを格納する
請求項1に記載のログ制御装置。
The log generation means generates a log further including an importance level,
The log control device according to claim 1, wherein the log storage unit stores the log based on the importance included in the log generated by the log generation unit.
前記ログ生成手段は、ノーマル及びエラーの少なくともいずれかにより表される種別をさらに含むログを生成する
請求項1又は2に記載のログ制御装置。
The log control device according to claim 1, wherein the log generation unit generates a log further including a type represented by at least one of normal and error.
前記ログ格納手段は、所定の契機に、前記第1の記憶手段に記憶されているログのうち種別がノーマルであるログのみを格納する
請求項3に記載のログ制御装置。
The log control device according to claim 3, wherein the log storage unit stores only a log of a normal type among logs stored in the first storage unit at a predetermined opportunity.
前記ログ格納手段は、前記ログ生成手段が、種別がエラーであるログを生成した場合、ログを格納する
請求項3又は4に記載のログ制御装置。
The log control device according to claim 3, wherein the log storage unit stores a log when the log generation unit generates a log having an error type.
前記ログ格納手段は、エラーの種類毎に格納対象のログが規定されている格納指針に基づいてログを格納する
請求項5に記載のログ制御装置。
The log control device according to claim 5, wherein the log storage unit stores the log based on a storage guideline in which a log to be stored is defined for each type of error.
前記格納指針は、入力データに基づいて変更されうる
請求項6に記載のログ制御装置。
The log control device according to claim 6, wherein the storage guideline can be changed based on input data.
前記第1の記憶手段は、前記第2の記憶手段より高速に動作する
請求項1乃至7のいずれかに記載のログ制御装置。
The log control device according to claim 1, wherein the first storage unit operates at a higher speed than the second storage unit.
ログ制御装置を有する画像形成装置であって、
前記ログ制御装置は、
時刻を含むログを生成するログ生成手段と、
前記ログ生成手段により生成されたログを記憶する第1の記憶手段と、
ログを記憶し、不揮発性を有する第2の記憶手段と、
前記第1の記憶手段に記憶されているログのうち所定期間に含まれるものを、所定の契機に前記第2の記憶手段に格納するログ格納手段と
を有する画像形成装置。
An image forming apparatus having a log control device,
The log control device
Log generation means for generating a log including time; and
First storage means for storing a log generated by the log generation means;
A second storage means for storing a log and having non-volatility;
An image forming apparatus comprising: a log storage unit configured to store, in a predetermined trigger, logs included in a predetermined period among logs stored in the first storage unit.
不揮発性の記憶装置を有するログ制御装置において、
時刻を含むログを生成し、
前記生成されたログを記憶し、
前記記憶されているログのうち所定期間に含まれるものを、前記記憶装置に格納する
ログ制御方法。
In a log control device having a non-volatile storage device,
Generate a log containing the time,
Storing the generated log;
A log control method for storing, in the storage device, a log included in a predetermined period among the stored logs.
コンピュータと、不揮発性の記憶装置とを有するログ制御装置において、
時刻を含むログを生成するログ生成ステップと、
前記生成されたログを記憶する記憶ステップと、
前記記憶されているログのうち所定期間に含まれるものを、前記記憶装置に格納するログ格納ステップと
を前記ログ制御装置のコンピュータに実行させるプログラム。
In a log control device having a computer and a non-volatile storage device,
A log generation step for generating a log including the time;
A storage step for storing the generated log;
A program for causing a computer of the log control device to execute a log storage step of storing in the storage device what is included in a predetermined period of the stored logs.
JP2006181434A 2006-06-30 2006-06-30 Log control device, image forming device, log control method and program Pending JP2008009854A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006181434A JP2008009854A (en) 2006-06-30 2006-06-30 Log control device, image forming device, log control method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006181434A JP2008009854A (en) 2006-06-30 2006-06-30 Log control device, image forming device, log control method and program

Publications (1)

Publication Number Publication Date
JP2008009854A true JP2008009854A (en) 2008-01-17

Family

ID=39067979

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006181434A Pending JP2008009854A (en) 2006-06-30 2006-06-30 Log control device, image forming device, log control method and program

Country Status (1)

Country Link
JP (1) JP2008009854A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008205526A (en) * 2007-02-16 2008-09-04 Fuji Xerox Co Ltd Image forming apparatus and system, and program
JP2009230301A (en) * 2008-03-21 2009-10-08 Fujitsu Ltd Control method and device for acquiring log data, and computer program
JP2010036498A (en) * 2008-08-06 2010-02-18 Canon Inc Recorder and method for controlling the same
JP2010237809A (en) * 2009-03-30 2010-10-21 Nec Corp Trace device, trace method, and trace program
JP2016162264A (en) * 2015-03-03 2016-09-05 日立オートモティブシステムズ株式会社 Vehicle electronic control device
JP2018049562A (en) * 2016-09-23 2018-03-29 東芝テック株式会社 Settlement device and program
US10069988B2 (en) 2015-11-25 2018-09-04 Konica Minolta, Inc. Image forming apparatus, computer readable recording medium stored with computer program for controlling image forming apparatus, and method for controlling image forming apparatus
US11310370B2 (en) 2019-07-31 2022-04-19 Konica Minolta, Inc. Image forming apparatus and diagnostic system increasing frequency of acquiring diagnostic data
US11316984B2 (en) 2019-09-13 2022-04-26 Konica Minolta, Inc. Image forming device and image forming device diagnostic system
US11468279B2 (en) 2019-09-17 2022-10-11 Konica Minolta, Inc. Image forming device and image forming device diagnostic system

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008205526A (en) * 2007-02-16 2008-09-04 Fuji Xerox Co Ltd Image forming apparatus and system, and program
JP4682993B2 (en) * 2007-02-16 2011-05-11 富士ゼロックス株式会社 Image forming apparatus and program
JP2009230301A (en) * 2008-03-21 2009-10-08 Fujitsu Ltd Control method and device for acquiring log data, and computer program
JP2010036498A (en) * 2008-08-06 2010-02-18 Canon Inc Recorder and method for controlling the same
JP2010237809A (en) * 2009-03-30 2010-10-21 Nec Corp Trace device, trace method, and trace program
JP2016162264A (en) * 2015-03-03 2016-09-05 日立オートモティブシステムズ株式会社 Vehicle electronic control device
US10069988B2 (en) 2015-11-25 2018-09-04 Konica Minolta, Inc. Image forming apparatus, computer readable recording medium stored with computer program for controlling image forming apparatus, and method for controlling image forming apparatus
JP2018049562A (en) * 2016-09-23 2018-03-29 東芝テック株式会社 Settlement device and program
US11310370B2 (en) 2019-07-31 2022-04-19 Konica Minolta, Inc. Image forming apparatus and diagnostic system increasing frequency of acquiring diagnostic data
US11316984B2 (en) 2019-09-13 2022-04-26 Konica Minolta, Inc. Image forming device and image forming device diagnostic system
US11468279B2 (en) 2019-09-17 2022-10-11 Konica Minolta, Inc. Image forming device and image forming device diagnostic system

Similar Documents

Publication Publication Date Title
JP2008009854A (en) Log control device, image forming device, log control method and program
JP4795138B2 (en) Image processing apparatus and program
JP5100463B2 (en) Data processing apparatus, control method thereof, and program
JP4337824B2 (en) Virtual device name change program
JP2009151680A (en) Information processor, log monitoring program, and log monitoring method
US8245085B2 (en) Dump output control apparatus and dump output control method
JP2010140111A (en) Equipment management device, equipment management system, log management method, log management program and recording medium with the program recorded thereon
US8294932B2 (en) Image forming apparatus, image forming system, and image forming method
JP2010152838A (en) Image forming device, control method and program
JP2017224051A (en) Information processing apparatus, information processing method, and program
JP5381059B2 (en) Device, log recording control method, and program
JP6179200B2 (en) Information processing apparatus, device, information processing system, information processing method, and information processing program
WO2020100271A1 (en) Information processing apparatus, information processing method and information processing program
US7103787B2 (en) Method for discovering power consumption in hardcopy output device by adding idle power consumption to outputting power consumption of hardcopy output device
JP2009116618A (en) Information processing apparatus
JP5247516B2 (en) COMMUNICATION DEVICE, ITS CONTROL METHOD, PROGRAM
JP5187082B2 (en) DEVICE MANAGEMENT DEVICE, DEVICE MANAGEMENT SYSTEM, DEVICE MONITORING METHOD, DEVICE MONITORING PROGRAM, AND RECORDING MEDIUM CONTAINING THE PROGRAM
CN111090627B (en) Log storage method and device based on pooling, computer equipment and storage medium
JP2010149392A (en) Image formation device and program
JP4174411B2 (en) Job management apparatus, job management method, and job management program
JP4769755B2 (en) Profiling support program, profiling support method, and computer
JP2015179341A (en) electronic device and log storage method
JP2011150736A (en) Profiling program, profiling method and computer
JP4920725B2 (en) Image processing apparatus and program
JP2006345041A (en) Image processing apparatus