WLST Question
We are using a WLST script to create and configure a WLS domain and included in that script is a section where we set up the “logging” configuration for the various servers. One of the attributes we are attempting to set is to “limit the number of log files”. Below is an excerpt of the script we are using to accomplish the task.
cd('/Servers/'+adminServerName+'/Log/'+adminServerName)
cmo.setRotationType('bySize')
cmo.setNumberOfFilesLimited(true)
cmo.setRotateLogOnStartup(true)
After running the script that contains the above excerpt we then start the AdminServer and access the WLS console. When we look at the logging attributes for the server we configured, the “rotation type” is properly set but the “Limit number of retained files” configuration attribute is not set. My question is this: Do you have to set the “NumberOfFilesLimited” attribute using WLST “online” in order for this to work? I seem to recall that you can only set certain attributes in “online” mode and what I’m asking is “is this one of those attributes that requires us to be