Browse Prior Art Database

Method for robust software logging

IP.com Disclosure Number: IPCOM000013727D
Original Publication Date: 2000-Apr-01
Included in the Prior Art Database: 2003-Jun-18
Document File: 1 page(s) / 43K

Publishing Venue

IBM

Abstract

A software logging method was needed that allowed for multiple logging levels, a dynamic level mask, private and shared logs, arbitrary data, as well as dynamic maintenance and robust query facilities. This invention reduces the number of logs typically required by programs, while allowing more flexible data to be logged. It also allows for better debugging of programs by allowing dynamic level masking, while maintaining thorough query capabilities and the ability to prune active logs. The Log service provides the following functions: LOG Write data to a log file QUERY Query data from a log file LIST List log file characteristics DELETE Delete a log file PURGE Purge records from a log file HELP Returns syntax information This invention achieves the following advantages: Multiple logging levels allow you to separate out differing types of data while

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 75% of the total text.

Page 1 of 1

Method for robust software logging

A software logging method was needed that allowed for multiple logging levels, a dynamic level mask, private and shared logs, arbitrary data, as well as dynamic maintenance and robust query facilities. This invention reduces the number of logs typically required by programs, while allowing more flexible data to be logged. It also allows for better debugging of programs by allowing dynamic level masking, while maintaining thorough query capabilities and the ability to prune active logs. The Log service provides the following functions:

LOG - Write data to a log file QUERY - Query data from a log file LIST - List log file characteristics DELETE - Delete a log file PURGE - Purge records from a log file HELP - Returns syntax information

This invention achieves the following advantages:

Multiple logging levels allow you to separate out differing types of data while

maintaining a single log file. For example, errors and informational messages can be easily written and distinguished in a single log. Dynamic level masks allow you to change the data written to the log on the fly. For

example, a program instrumented with this invention can dynamically be changed from logging only error messages to both error and debug messages, allowing easier debugging and smaller log files. Private logs allow a process to separate its logged data from other processes, while

shared logs allow multiple processes (possibly on multiple machines) to share a...