Hi,
I am trying to set up traces for an EJB application. In the EAR project, i created the log-configuration.xml, specified the formatter, destination, and controller. I then put in all the necessary logging statements into my code, an example is listed below:
private static final boolean DEBUG = logger.beDebug();
if (DEBUG) {Object[] param = new Object[] { input };
logger.entering("Bean.saveXYZ(input)", param);
}
And all the other relevant calls.
However, no folder is being created in the specified location on the hard drive. I have checked the folder permissions and those are set correctly. Also there are other folders containing logs for other applications already present at this destination.
I have also ensured that the Log Configurator in the Visual Admin has the locations showing up correctly.
When i pull up the Log Viewer in the Visual Admin, I see the log destination defined in the tree structure. On expanding the tree there is a "default.trc" file present in there, but on trying to open the file i get an "X" mark next to the filename, and on checking the properties of the file I see "Error" in the Status.
Would anyone have a clue as to what the potential issue could be over here. I checked a lot of the SAP documentation for logging but found nothing that i had missed or done incorrectly. I even deployed the application to a different server, but in that case too i am getting the same response.
All help is appreciated.
Thanks,
Murtaza.
Message was edited by: Murtaza Madraswala