1. A method, in a data processing system, for logging sensitive objects, the method comprising: loading a declaration file including declarative information identifying one or more sensitive objects and a log application; responsive to a call to the log application, determining whether a given object being passed to the log application is one of the one or more sensitive objects; and if the given object is one of the one or more sensitive objects, encrypting the given object before passing the given object to the log application.