| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| I have been trying to configure http logging using API MBEANS. For some re= ason, the values are not being passed along. I am using WLST to call a .py to configure the values. For the general log= ging, it works without issue. Also, along the same format, how can logging be adjusted for the admin logs= .. Version WL: 10 ****SCRIPT***** import weblogic.management.configuration.LogMBean as LogMBean import weblogic.management.configuration.WebServerLogMBea n as WebServerLogM= Bean # This section creates the Log MBean and configures it for log rotation. create(managedServerName, 'Log') cd('Log/' + managedServerName) cmo.setRotationType(LogMBean.TIME) cmo.setFileName('logs/' + managedServerName + '.log') cmo.setFileCount(25) # This section creates the WebServer Log MBean and configures it for log ro= tation. HTTP LOGGING cmo.setRotationType(WebServerLogMBean.TIME) cmo.setFileCount(15) cmo.setLogFileFormat(extend) cmo.setELFFields("c-ip date time cs-method cs-uri sc-status bytes time-take= n") *****END OF SCRIPT***** Any help is appreciated. -- Edited by woodalla at 06/09/2008 11:25 AM |
|
#2
| |||
| |||
| Can you provide more info on what the problem is? What do you mean by the values are not being passed along? Andrew Woodall wrote: > I have been trying to configure http logging using API MBEANS. For some reason, the values are not being passed along. > > I am using WLST to call a .py to configure the values. For the general logging, it works without issue. > > Also, along the same format, how can logging be adjusted for the admin logs.. > > Version WL: 10 > ****SCRIPT***** > import weblogic.management.configuration.LogMBean as LogMBean > import weblogic.management.configuration.WebServerLogMBea n as WebServerLogMBean > > # This section creates the Log MBean and configures it for log rotation. > create(managedServerName, 'Log') > cd('Log/' + managedServerName) > cmo.setRotationType(LogMBean.TIME) > cmo.setFileName('logs/' + managedServerName + '.log') > cmo.setFileCount(25) > > # This section creates the WebServer Log MBean and configures it for log rotation. HTTP LOGGING > cmo.setRotationType(WebServerLogMBean.TIME) > cmo.setFileCount(15) > cmo.setLogFileFormat(extend) > cmo.setELFFields("c-ip date time cs-method cs-uri sc-status bytes time-taken") > > *****END OF SCRIPT***** > > Any help is appreciated. > > -- > Edited by woodalla at 06/09/2008 11:25 AM |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.