Browse Prior Art Database

A flexible logging method supporting dynamic log behavior based on policies and runtime context

IP.com Disclosure Number: IPCOM000179519D
Original Publication Date: 2009-Feb-16
Included in the Prior Art Database: 2009-Feb-16
Document File: 4 page(s) / 34K

Publishing Venue

IBM

Abstract

This invention disclosure describes a flexible logging method that supports dynamic logging behavior based on policies and runtime context. With this method, the behavior of static logging methods written in program code could be changed automatically according to the predefined policies and runtime context. Besides static logging methods, entry point code could be used in program code so that policies could be applied and behavior of logging methods could be changed.

This text was extracted from a PDF file.
At least one non-text object (such as an image or picture) has been suppressed.
This is the abbreviated version, containing approximately 46% of the total text.

Page 1 of 4

A flexible logging method supporting dynamic log behavior based on policies and runtime context

1

1.

. Background : What is the problem solved by your invention ? Describe known solutions to this problem (

(if any

                                                                             if any). What are the drawbacks of such known solutions , or why is an additional solution required ? Cite any relevant technical documents or references . Background : When we develop applications , we always need to insert log statements into program code for debugging purpose . It may be the only way because debuggers are not always available or applicable . This is often the case but not limited for distributed applications . Too much debugging code will reduce applications ' speed and too much logs produced will use a lot ofdisk space , some mechanisms such as log levels as well as corresponding log methods have been adopted in the log frameworks to control log behaviors . With high log level, log methods of comparative lower level will not produce logs , and only the log methods of equal or higher level will produce logs .

Problem:

       1) Log methods are static, how much log would be produced by a specific log method is determined atcoding phase . They can not be changed at runtime and the behavior of the log method can not be changed unless we change the sourcecode to use another log method .
2) When we expect more logs to be produced on a running system , we have very little ways to intervene the behavior of log methods .

Known solutions :

             Apache and Sun provide logging frameworks that enable logging at runtime without modifying the application binary . Both frameworks provide log methods , log levels, log handlers and configuration file to facilitate message logging .

The drawbacks of the existing solutions are they are not flexible . They can not adapt to the programrunning status and adjust logging behavior automatically. For example, it's impossible for the log methods to change logging level at runtime unless either we write more code in the program to control it manually or we update the configuration file .

2

2.

. Summary of Invention : Briefly describe the core idea of your invention (

(saving the details for questions

saving the details for questions #

ss)) of using your invention instead of the known solutions described above .

This invention disclosure describes a flexible logging method that supports dynamic logging behaviorbased on policies and runtime context. With this method, the behavior of static logging methods written in program code could be changed automatically according to the predefined policies and runtime context . Besides static logging methods , entry point code could be used in program code so that policies could be applied and behavior of logging methods could be changed .

Benefits of this method ?
1. Log behavior could be changed automatically to adapt to program ru...