BACKGROUND

The present invention relates to data processing systems, and more specifically, to logging of product events.

A log file is a file in which events that occur in a product, such as an application, hardware, etc., are recorded. Each log entry typically includes a time stamp, contextual information, and a message pertaining to an event. The act of generating log entries utilizes system resources. Accordingly, logging levels sometimes are set to specify the types of log entries that are created. For example, when a “basic” logging level is set, error messages may be logged. If a “warn” logging level is set, not only are error messages logged, but potentially harmful situations of interest also may be logged. A “fatal” logging level may be used to also log severe error events that presumably will lead an application to abort. “Debugging” logging levels provide relatively detailed tracing log files used to debug products. In comparison to the other types of logging levels, “debugging” logging levels typically utilize significantly higher levels of system resources.

SUMMARY

A method includes automatically analyzing user activity pertaining to a product. The method also can include, based, at least in part, on the analyzing the user activity pertaining to the product, deriving, using a processor, a temporal logging level model, the temporal logging level model determining a first logging level to be applied to the product and the temporal logging level model determining a duration of time for which the first logging level is to be applied to the product. The method also can include automatically initiating the first logging level to be applied to the product for the determined duration of time.

A system includes a processor programmed to initiate executable operations. The executable operations include automatically analyzing user activity pertaining to a product. The executable operations also can include, based, at least in part, on the analyzing the user activity pertaining to the product, deriving a temporal logging level model, the temporal logging level model determining a first logging level to be applied to the product and the temporal logging level model determining a duration of time for which the first logging level is to be applied to the product. The executable operations also can include automatically initiating the first logging level to be applied to the product for the determined duration of time.

A computer program product includes a computer readable storage medium having program code stored thereon. The program code is executable by a data processing system to initiate operations. The operations include automatically analyzing user activity pertaining to a product. The operations also can include, based, at least in part, on the analyzing the user activity pertaining to the product, deriving a temporal logging level model, the temporal logging level model determining a first logging level to be applied to the product and the temporal logging level model determining a duration of time for which the first logging level is to be applied to the product. The operations also can include automatically initiating the first logging level to be applied to the product for the determined duration of time.

This Summary section is provided merely to introduce certain concepts and not to identify any key or essential features of the claimed subject matter. Other features of the inventive arrangements will be apparent from the accompanying drawings and from the following detailed description.

