How to make loggingDebug = "true" for a request scoped component in /dyn/admin ?
How to enable loggingDebug for request scoped component?
1.4k Views Asked by anonymous AtThere are 3 best solutions below
On
yes you can actually do that. go the dyn/admin/nucleus/ and add the path after the nucleus.
check this link https://community.oracle.com/thread/2444056
so basically say I have the properties file in atg/userprofiling/myPropertiesFile.properties then just type http://localhost:port/dyn/admin/nucleus/atg/userprofiling/myPropertiesFile
HIH
On
First you have to define a global component with a loggingDebug property.
Example:
LoggingConfiguration.properties
$class=com.example.configuration.LoggingConfiguration
$scope=global
loggingDebug=false
Now in your request scoped component, link the loggingDebug property to LoggingConfiguration.loggingDebug as follows:
loggingDebug^=/path/LoggingConfiguration.loggingDebug
So you can control the loggingDebug configuration from the dyn/admin using the property in global scoped component LoggingConfiguration.
Once the LoggingConfiguration.loggingDebug is set to true, you will have logging enabled in further requests.
You cannot do this via
/dyn/adminas the component is by its nature request scoped. What you can do is edit the component's properties file and it will pick this up for the next request.