1. A method, in a data processing system having a number of application servers, for logging sensitive objects, the method comprising: receiving declarative information identifying one or more sensitive objects and a log class; generating an aspect that is enabled to make an encrypted copy of sensitive objects that may then be passed on to the log class, wherein the generated aspect is saved to a storage device in each application server in the number of application servers; configuring a runtime environment of all application servers to use the generated aspect; responsive to a call to a 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.