Skip to content

Commit 747c646

Browse files
Discover Domain Log
1 parent 4686890 commit 747c646

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

core/src/main/python/wlsdeploy/tool/discover/topology_discoverer.py

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,8 @@ def discover_domain_parameters(self):
263263
discoverer.add_to_model_if_not_empty(self._dictionary, model_folder_name, folder_result)
264264
model_folder_name, folder_result = self._get_restful_management_services()
265265
discoverer.add_to_model_if_not_empty(self._dictionary, model_folder_name, folder_result)
266+
model_folder_name, folder_result = self._get_domain_log()
267+
discoverer.add_to_model_if_not_empty(self._dictionary, model_folder_name, folder_result)
266268
_logger.exiting(class_name=_class_name, method_name=_method_name)
267269

268270
def discover_security_configuration(self):
@@ -306,7 +308,7 @@ def _get_jta(self):
306308
def _get_jmx(self):
307309
"""
308310
Discover the JMX agents configured in the domain.
309-
:return: model name for JMX:dictionary containing the discover JMX attributes
311+
:return: model name for JMX:dictionary containing the discovered JMX attributes
310312
"""
311313
_method_name = '_get_jmx'
312314
_logger.entering(class_name=_class_name, method_name=_method_name)
@@ -322,6 +324,26 @@ def _get_jmx(self):
322324
_logger.exiting(class_name=_class_name, method_name=_method_name)
323325
return model_top_folder_name, result
324326

327+
def _get_domain_log(self):
328+
"""
329+
Discover the domain log attributes.
330+
:return: model name for the Log:dictionary containing the discovered Log attributes
331+
"""
332+
_method_name = '_get_domain_log'
333+
_logger.entering(class_name=_class_name, method_name=_method_name)
334+
model_top_folder_name = model_constants.LOG
335+
result = OrderedDict()
336+
location = LocationContext(self._base_location)
337+
location.append_location(model_top_folder_name)
338+
name = self._find_singleton_name_in_folder(location)
339+
if name is not None:
340+
_logger.info('WLSDPLY-06626', class_name=_class_name, method_name=_method_name)
341+
location.add_name_token(self._alias_helper.get_name_token(location), name)
342+
self._populate_model_parameters(result, location)
343+
self._discover_subfolders(result, location)
344+
345+
return model_top_folder_name, result
346+
325347
def _get_restful_management_services(self):
326348
"""
327349
Discover the wlst restful management services enablement for the domain.

core/src/main/resources/oracle/weblogic/deploy/messages/wlsdeploy_rb.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,7 @@ WLSDPLY-06622=Adding Security Configuration
577577
WLSDPLY-06623=Adding keystore file {0} for server {1} to archive file
578578
WLSDPLY-06624=Unable to locate and add Server {0} keystore file {1} to the archive file : {2}
579579
WLSDPLY-06625=Unexpected exception attempting to add Server {0} keystore file {1} to the archive : {2}
580+
WLSDPLY-06626=Discovering Domain Log
580581

581582
# multi_tenant_discoverer.py, multi_tenant_resources_dsi
582583
WLSDPLY-06700=Discover Multi-tenant

0 commit comments

Comments
 (0)