I've got a custom EJB application and am attempting to use the SAP logger within it. I've added references from the EJB application to the logging libraries. Further, I've tried logging with two approaches.
First, I tried creating a category using the getCategory method:
Category sapCategory = Category.getCategory(Category.getRoot(),"myLogger");
sapCategory.addLog(new ConsoleLog());
sapCategory.addLog(new FileLog("myLogger", MAX_FILE_SIZE, 10));
System.out.println("Created SAP CATEGORY:" + sapCategory + " " + sapCategory.getName());
This didn't emit any errors, but it also didn't seem to log anything. I've seen some information around the logging configurator, but that appears to be for '04. What am I missing? Do I have to set up the destination? How do I do this?
Add a comment