How to use logging in the actions classes extends standart actions?

Hello!
I have some action classes extends standart actions, for example Z_ExtMaintainBasketDispatcherAction extends MaintainBasketDispatcherAction. I tried to use logging functionality in my classes but there were no my lines in log and trace files.
For example I added followed lines in basketPerform() method of Z_ExtMaintainBasketDispatcherAction:
boolean isDebugEnabled = log.isDebugEnabled();
if(isDebugEnabled){
log.debug("++++++++++++++++ Test tracing in B2B_SNG. ++++++++++++++++");
but in there was no such line neither in log file nor in trace file.
How I can use logging functionality in my own classes? I need it for tracing and logging.
CRM 5.0
regards, Lev

Well, here is solution. I created a log formatter and log destination like this:
<log-formatters>
<log-formatter name="application_sap.com/crm~b2b" type="TraceFormatter" pattern="%d,%-3p %t %s %l %m"/>
</log-formatters>
<log-destinations>
<log-destination name="application_sap.com_crm.b2b" type="FileLog"
    count="10" effective-severity="ALL" limit="10000000" pattern=".\log\applications\isa_ru.log">
<formatter-ref name="application_sap.com/crm~b2b"/>
</log-destination>
</log-destinations>
and new log controller like this:
<log-controller effective-severity="ALL" name="ru.sng.isa">
<associated-destinations>
<destination-ref name="application_sap.com_crm.b2b" association-type="LOG"/>
</associated-destinations>
</log-controller>
in file META-INF\log-configuration.xml
Thanks everybody for help!
Regards, Lev.

Similar Messages

  • Determin how many user log on the site using JSP/Servlet?

    Hi all,
    Is there a way to determine how many user log on the site using JSP/Sevlet? I'm running Apache 2.x & Tomcat 4.x
    I'm trying to get a list of user currently log in the site.
    Please help!
    Thanks,
    -JN-

    You could use the HttpSessionBindingListener interface. Every time a user logs into the session put a user object into the session. The user object will implement the HttpSessionBindingListener interface. When the user object is added to a sessiion it recieves an event and it increments a counter. When the session times out or you invalidate the session because the user has logged out the user object will recieve an event and it can then decrement the counter.
    This will at least tell how many active user sessions there are.

  • How to use abap memory in global class

    Hi experts,
                     I want to  know how to use abap memory in global class. when i try write export and import statement its showing
    error is export statement does not support in object oriented concept.
    Thanks
    Ramesh Manoharan

    Hi Ramesh,
    Export and import statements were not allowed to use in  classes. Create a global variable in public section of that class of type of  export parameter.Then pass value to the global variable of class  by calling that class.
    by
    Prasad GVK.

  • V.Important: How to use se24 to build a class step by step:  Points assured

    hi all
    I am new to OO based abap programming.  I want to build a class using SE24 but i dont know where to put the various pieces of code in SE24.
    Can anyone please provide a step by step procedure (including screenshots) on how to use SE24 to build a class using most of the features like constructor, attributes , interface , friend etc.
    Documents would be more helpful as compared to links.
    Points will be awarded
    thanks in advance

    Hi,
    Just follow the below givenlink. Using this you can create a class in SE24.
    http://help.sap.com/saphelp_nw04/helpdata/en/b3/f4b1406fecef0fe10000000a1550b0/content.htm
    I think the below document would be
    a very good introduction
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0a33479c-0b01-0010-7485-dc8c09d6bc69
    See the Following Dem Program:
    DEMO_ABAP_OBJECTS Complete Demonstration for ABAP Objects
    DEMO_ABAP_OBJECTS_CONTROLS GUI Controls on Screen
    DEMO_ABAP_OBJECTS_DIALOG_BOX Splitter Control for Screen with Dialog Box
    DEMO_ABAP_OBJECTS_EVENTS Demonstration of Events in ABAP Objects
    DEMO_ABAP_OBJECTS_GENERAL ABAP Objects Demonstration
    DEMO_ABAP_OBJECTS_METHODS Demonstration of Methods in ABAP Objects
    DEMO_ABAP_OBJECTS_SPLIT_SCREEN Splitter Control on Screen
    Regards,
    Padmam.

  • I sold my ipad 2 and didn't take out my apple id. how can i log off the ipad with out having it in hand?

    I sold my ipad 2 and didn't take out my apple id. how can i log off the ipad with out having it in hand?

    You can't. But the buyer more than likely restored it because he/she could not use your Apple ID.

  • OWSM: How to use log step

    Hi,
    I want to make use of the LOG step in the policy to write whatever happened in the request and response pipelines. but inclusion of the log step makes no difference. i want to know whether this is possible or not.
    If anyone has some tutorials for how to use log step pl send me.
    Thanks in advance.
    Regards,
    Abhi...

    Hi!
    If i just make a little example and add the logstep before and after for example a xmlencrypt-policy-step, and log the whole payload..everything works fine overhere.
    If i go to the Operational Management>Overall Statistics>Message Logs and can see every step inwhich it got called (the log policy step)

  • How to use log console

    how to use log console?

    kilty66 wrote:
    disk1s3: media is not present.
    Video capture fps 13.056067 , requested 15
    (com.conduit.loader.Agent[866]) Exited with code: 1
    The first means something is missing, most likely on an external HD.
    If the other two were sent at the same time, they're probably all related to a video capture problem.
    Many of the messages you'll see in your logs don't indicate a real problem -- they'll be status messages, info for developers, etc., so don't try to figure out every message you see.
    If you see the same message repeated over and over (as the MacKeeper ones probably did), that's clearly a problem, of course.
    If you're having specific problems, but not getting messages on your screen, check for log messages that seem related (ie, sent at the same time, and/or from a process you recognize as being related).  See the blue box in OSX Log Files for help deciphering the messages.  If you're not sure about what a particular process does, many of the names of Apple processes are listed here: http://triviaware.com/macprocess/all with a brief explanation.
    For other processes, or other references, Google will often turn up some info.
    If none of that helps, post a new thread for each such problem, with as much detail as you can about what you were doing and what kind of difficulty you were having, and, of course, the message(s) that seem related.
    Try to post them in the appropriate forum; if you're having a problem with a specific Apple app, there may be a forum for that app, where folks who know it well hang out.  

  • Why do i have two game center accounts on one apple id and how do i log into the other one

    One day while i was bored i started up a game but all of my progress items and everything that i paid for was gone and it was the same in all of my other game center related apps. After a long chain of emails with the maker of the game he stopped being helpful but we figured out that i have two game center accounts but only one apple id. So how do i log into the account with all of my data?

    Get a separate Apple ID for one of the phones. Or turn OFF iCloud contacts synching on the one you do not want contacts to synch.
    Settings>>iCloud

  • I just bought photoshop elements 13 last night. Today I am watching tutorial videos to show me how to use it, but the videos are showing me things I don't have. Asking me to click on tabs i don't have. Why is this? Is there another way I can learn? Or is

    I just bought photoshop elements 13 last night. Today I am watching tutorial videos to show me how to use it, but the videos are showing me things I don't have. Asking me to click on tabs i don't have. Why is this? Is there another way I can learn? Or is my download messed up and not giving me everything I need?

    Got a link showing us which video tutorials you're watching and examples of what's missing in your software?

  • How to use shortDesc in the disabled inputtext

    hi,all
    i encounter a problem,our team must use disabled inputtext when the text is only used to output string.
    the reson we don't use outputext is if there is noting in the outputtext,there is nothing displayed.
    how to use shortDesc in the disabled inputtext?
    here is the code:
    <af:inputText value="#{bindings.shortdesc.inputValue}" disable="true"
    id="ot2" columns="25" shortDesc="#{bindings.longdesc.inputValue}"
    simple="true"/>
    thanks all

    Hi,
    ........... I use JDev 11g ..............
    If you make your inputText disabled -----> shortDesc will not be displayed.
    You can make a workaround to achieve this by using popup as :
    1- add showPopupBehavior inside your inputText as :
    <af:inputText label="label1" id="it1" disabled="true">
                    <af:showPopupBehavior triggerType="mouseOver"
                                          align="endBefore" alignId="it1"
                                          popupId="p1"/>
                  </af:inputText>2- add a popup which will display your shortDesc text
    <af:popup id="p1">
                      <af:outputText value="Sameh POPUP" id="ot1"/>
              </af:popup>I hope it is useful.
    Sameh Nassar

  • Flash Player use to execute the main class entry point before rendering. Now it does not

    Adobe Flash Player use to execute the main class entry point before rendering the first frame. Now using the latest browsers and Flash Player 11.8 (11.8.800.94, or 11.8.800.97 for Chrome).
    With one of our swf apps, there are visual display objects on the first frame of the timeline. When the main class constructor is executed, those display objects are set to visible = false. So previously those display objects were never displayed because the first frame did not render until after the main class code was ran.
    Now when we browse to the our website, we find that those display objects are visible for a split moment of time (such as a quarter of a second).
    It appears that this may be a bug. We are wondering this could be new behavior based on loading/unloading the swf to optimize CPU usage and that Flash Player is taking a snapshot of the internal state of the first frame and displaying the cached snapshot before it actually loads.
    So...Chris (or other Adobe representative), is Flash Player supposed to be rendering the display before any code executes it runs the main class?

    Not that I'm aware of.  If this is something that just started with 11.8, then we could be running into some sort of bug injection.  Could you please open a new bug report on this over at bugbase.adobe.com?  When adding the bug, please include sample code, application or URL so we can quickly test this out internally.  If you'd like to keep this private, feel free to email the attachment to me directly ([email protected]). 
    Once added, please post back with the bug number and we'll investigate from there.

  • How to use labview with the handyboard

    Hi,
    how to use labview with the handyboard
    Thx...

    I'm assuming you're talking about this, since you didn't provide a link for those of us who don't know what you're talking about.
    As the other poster said, you didn't say how you want to use LabVIEW with it.  If you want to write LabVIEW programs than run on the microprocessor, then you're out of luck.  If you want LabVIEW to interact with it, then you've got a couple of options, SPI probably being the best, but it also has DI and AI that you could use to communicate with it - the DI's could be used as a parallel interface.
    Message Edited by Matthew Kelton on 12-17-2007 02:21 PM

  • How to use PS to judge the existence of a folder in the specified directory and how to use PS in the specified directory to create to create the folder?(javascript)

    1,How to use PS to judge the existence of a folder in the specified directory?(use javascript)
    2, how to use PS in the specified directory to create to create the folder?(use javascript)
    Thanks you!

    Thanks you!

  • I downloaded the free trial for Adobe XI Pro but now I cant find it on my computer or figure out how to use it. The only thing I see that downloaded is Adobe Download Assistant. How can I access the program?

    I downloaded the free trial for Adobe XI Pro but now I cant find it on my computer or figure out how to use it. The only thing I see that downloaded is Adobe Download Assistant. How can I access the program?

    Assistanttolindsey the Adobe Download Assistant will download the installation files for Adobe Acrobat Professional XI.  By default they are saved to your download folder.  You can begin the installation process from there.

  • How do I log into the App Store after my friend logged in to his from mine

    How do I log into the App Store after my friend logged in to his from mine?

    Go into settings > iTunes and App store.. your friends email will appear there.. tap and hold until it highlights gray.. then a box will come up  press sign out and then enter your user cardentials where your friends were.

Maybe you are looking for