This content has been marked as final. Show 9 replies
Please follow the below steps to get the Logs/View Log Messages menu item enabled for your target:
1) Create the log viewer registration xml file for your target type. The DTD for this xml file is oracle/sysman/emSDK/logmgmt/registration/LogMgmtTargetTypeRegistration.xsd
2) Make sure the created log viewer registration xml file is accessible from $PLUGIN_ROOT/metadata/logmgmt/ folder.
3) Install your Plugin.
A sample registration xml file content is,
<LogMgmtUITargetConfig TARGET_TYPE="%your targe type%">
OOB Log Viewer supports the FMW & FA targets which includes WebLogic J2EE Server, J2EE Applications, Custom J2EE Applications, HTTP Server, etc.. If your target is in this list, then the above registration is sufficient to get the logs for your target.
But if your target is not part of this list, then a custom log viewer implementation is required which should extend the oracle/sysman/emSDK/logmgmt/LogViewer.java and include this in the above registration xml.
Log Viewer UI is not customizable.
Thanks for the reply.
I couldn't get this working yet. I have created a folder named "logmgmt" inside metadata folder and added an xml file "LogMgmtsamplepluginRegistration". Now when i create plugin using command empdk create_plugin. It creates an error report which contains
+"Could not find the corresponding xsd to validate the Metadata serviceException while trying to write to C:\Users\TestUser\AppData\Local\Temp\logMgmt\partner\LogMgmtTargetTypeRegistration.xsd_partner: The meta data registration service Log Management Target Type Registration is not published to the plug-in Sample.Plugin.Demo"+
I think I am missing something else. Could you please help to identify the issue.
I am trying to figure out how to extend oracle/sysman/emSDK/logmgmt/LogViewer.java in our implementation. Could you please elaborate how to import this or where can I find this class. In my Flex implementation I tried importing oracle.sysman.emx but couldn't find emSDK or logmgmnt. Do I need to install anything else? Please help.