Log output condition setting method and apparatus
AssigneeFujitsu Limited
InventorYuichiro Suzuki
Life of this patent
Estimating the term…
Abstract
A log output condition setting method is disclosed. The method includes, when a call for a log acquisition target is made, acquiring a context of the call, and based on the acquired context and storage information that has stored therein information in which a context of a call for the log acquisition target and a processing result are associated, setting an output condition for a log in the log acquisition target.
Claims8
A non-transitory computer-readable recording medium storing a program that, when executed, causes a computer to perform a method, the method comprising:
- when a call for a log acquisition target is made, acquiring a context of the call, the context of the call including at least one of an input value that is passed as an argument to the log acquisition target when the log acquisition target is called and a call route of the log acquisition target when the log acquisition target is called;
- and
- based on the acquired context and storage information that has stored therein information in which a context of a call for the log acquisition target and a processing result of the call are associated, setting an output condition for a log in the log acquisition target, wherein
- when the acquired context of the call includes the input value which is within a range having a past processing record, or includes the call route which is a route having a past call record, the output condition is a low log level for the log, and
- when the acquired context of the call includes the input value which is not within the range having a past processing record, or includes the call route which is not a route having a past call record, the output condition is a high log level for the log.
A log output condition setting apparatus, comprising:
- a memory and a processor coupled to the memory and configured to execute a process, the process comprising:
- acquiring, when a call for a log acquisition target is made, a context of the call, the context of the call including at least one of an input value that is passed as an argument to the log acquisition target when the log acquisition target is called and a call route of the log acquisition target when the log acquisition target is called;
- and
- setting, based on the acquired context and storage information that has stored therein information in which a context of a call for the log acquisition target and a processing result of the call are associated, an output condition for a log in the log acquisition target, wherein
- when the acquired context of the call includes the input value which is within a range having a past processing record, or includes the call route which is a route having a past call record, the output condition is a low log level for the log, and
- when the acquired context of the call includes the input value which is not within the range having a past processing record, or includes the call route which is not a route having a past call record, the output condition is a high log level for the log.
A log output condition setting method comprising:
- when a call for a log acquisition target is made, acquiring a context of the call, the context of the call including at least one of an input value that is passed as an argument to the log acquisition target when the log acquisition target is called and a call route of the log acquisition target when the log acquisition target is called;
- and
- based on the acquired context and storage information that has stored therein information in which a context of a call for the log acquisition target and a processing result of the call are associated, setting an output condition for a log in the log acquisition target, wherein
- when the acquired context of the call includes the input value which is within a range having a past processing record, or includes the call route which is a route having a past call record, the output condition is a low log level for the log, and
- when the acquired context of the call includes the input value which is not within the range having a past processing record, or includes the call route which is not a route having a past call record, the output condition is a high log level for the log.
Dependencies are inferred from the claim text.