Skip to Content
author's profile photo Former Member
Former Member

AS 6.2 Logging

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
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jul 23, 2004 at 09:08 AM

    Search the topic "println, printStackTrace output in an EJB... Where is it going?" and have a look on this discussion with Dale Seng. I hope this helps!

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.