Using log4j to create custom log level in standalone batch application

Hi all,
I would like to use Log4j to create a custom log level so that from my standalone java batch process application, whatever error messages I can log to a log file.
Can any one give me any pointer on this.
Appreciate any help.

This doesn't seem to warrant a 'custom level'. Just use Log4J as is... create a Logger object and use its error() or warn() or whatever methods are appropriate for the logging you want to do. I don't understand the reason for the question.

Similar Messages

  • Using SDK to create custom XMP panel in Bridge CS4

    Using the SDK materials how exactly does one go about creating their own custom XMP panel for Bridge CS4?
    I feel like I'm getting close- I was able to copy the BasicControlSamplePanel folder from SDK to my local C drive @
    C:\Documents and Settings\tony\Application Data\Adobe\XMP\Custom File Info Panels\2.0\panels
    I figure once that file is in the right place I can simply modify it to get custom fields
    Now when I did this I noticed in Bridge when rightclicked on an image and clicked file info- the  BasicControlSamplePanel tab was visible but upon clicking on BasicControlSamplePanel tab there was nothing in this dialogue box. Tried restarting computer- and still nothing- seems like it is the correct folder what do I need to do to get the properties to show up
    Help please
    Thanks
    Tony

    Hi Tony,
    please refer to the section "Creating custom XMP properties using XML" in the XMP FILEINFO SDK PROGRAMMER’S GUIDE for information how to create custom panels for the metadata panels in applications like Bridge or Premiere.
    Regards
    Jörg
    Adobe XMP

  • Why can't I find the field remark when I use LSMW to create customer master

    I want to create customer master data with LSMW.
    Object               0050   客户主记录
    Method               0000
    Program Name         RFBIDE00
    Program Type         B   Batch Input
    but I can't find the field 'Comments' which is in view general data -> address.
    pls help me to find it.
    tks!

    Hi,
    This is quiet simple.
    See when you enter your Tcode in LSMW & start recording, on the first screen where you enter the customer details to create, you see a tick below "Use central adress management"
    Just tick this & record you will get comment in your recording
    Hope this helps you
    Regards,
    Dhananjay

  • How to configure WL 10.3 to used log4j instead of jdk logging

    Hi,
    How can I configure WL 10.3 to use log4j instead of jdk default logging. I did changed the logging to log4j through the console for the AdminServer and one of the Managed Instance. I try to deploy axis2.war but it fails and complains about apache logger class not found. So wondering what other settings do I need. I even copied log4j-1.2.15.jar & wllog4j.jar in WL_DOMIAN\lib and restaretd the server but still gets the following error is
    'weblogic.application.ModuleException: [HTTP:101216]Servlet: "AxisServlet" failed to preload on startup in Web application: "axis".
    java.lang.ExceptionInInitializerError
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
         at java.lang.Class.newInstance0(Class.java:355)
         at java.lang.Class.newInstance(Class.java:308)
         at weblogic.servlet.internal.WebComponentContributor.getNewInstance(WebComponentContributor.java:223)
         at weblogic.servlet.internal.WebComponentContributor.createServletInstance(WebComponentContributor.java:247)
         at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:255)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
         at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
         at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)
         at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:521)
         at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1913)
         at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1887)
         at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1805)
         at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3041)
         at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1374)
         at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:452)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
         at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
         at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
         at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
         at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:629)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
         at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:206)
         at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:40)
         at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:140)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:106)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
         at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
         at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:181)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:12)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:67)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@70b01a for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Logger) (Caused by org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@70b01a for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Logger))
         at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
         at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
         at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
         at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
         at org.apache.axis2.transport.http.AxisServlet.<clinit>(AxisServlet.java:83)
         ... 50 more
    Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@70b01a for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Logger)
         at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:413)
         at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
         ... 54 more
    Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Logger
         at java.lang.Class.getDeclaredConstructors0(Native Method)
         at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
         at java.lang.Class.getConstructor0(Class.java:2699)
         at java.lang.Class.getConstructor(Class.java:1657)
         at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:410)
         ... 55 moreThanks

    Go to Environments >> servers>> adminServer >> logging >> advanced
    change the default JDK logging to log4j
    by default weblogic provides two types of logging JDK and log4j

  • About to use HR_INFOTYPE_OPERATION to create customer infotype issue:

    hi
    i want to create infotype use function(HR_INFOTYPE_OPERATION).
    this infotype is customer infotype.
    the first scenario is:
      i'm be sure no data about one employee in this infotype(9004).
      to call with data upload function and put data into internal table IT_PA9004.
      and the table data as follow:
    one line: it_pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ03',
              it_pa9004-begda = '20080201' , it_pa9004-endda = '20080930'
              it_pa9004-zzvalue = 50 (customer field).
    two line:it_pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ03',
              it_pa9004-begda = '20080201' , it_pa9004-endda = '20080930'
              it_pa9004-zzvalue = 60 (customer field).
    three line:it_pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ03',
              it_pa9004-begda = '20080101' , it_pa9004-endda = '20081031'
              it_pa9004-zzvalue = 70 (customer field).
    four line:it_pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ03',
              it_pa9004-begda = '20080101' , it_pa9004-endda = '20081031'
              it_pa9004-zzvalue = 80 (customer field).
    i run the programme and get information is:
    11022887 insert ok.
    11022887 insert ok.
    11022887 insert ok.
    11022887 insert ok.
    but i use the transation PA30 to view all data:
    in database just exist one row:
    four line:it_pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ03',
              it_pa9004-begda = '20080101' , it_pa9004-endda = '20081031'
              it_pa9004-zzvalue = 80 (customer field).
    the second scenario is:
    in database the infotype have exist one row:
               pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ02',
               pa9004-begda = '20080318' , pa9004-endda = '20080318'
               pa9004-zzvalue = X (customer field).
    and i create another row:
    line:it_pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ02',
              it_pa9004-begda = '20080318' , it_pa9004-endda = '99991231'
              it_pa9004-zzvalue = 80 (customer field)
    i run the programme and get information is:
    11022887 insert ok.
    the three scenario is:
        set  HR_INFOTYPE_OPERATION of import parameter operation = 'MOD'
        in any scenario will get error :not exist subtype .
    what heppend about HR_INFOTYPE_OPERATION working,i had to use this function to
       create other infotype of SAP owner.
       and will create successfully.
    so i thank it may be config Constraints about customer infotype.
    is time Constraints effect?
    so i want to how to check it?
    and if i want to create one infotype for customer using PM01 what some thing
    must be taken into account.
    think you advance.
    partial source code as follow:
    FORM ACTION_INSERT .
      DATA: P_FLAG TYPE C.
      DATA: WA_LOG LIKE LINE OF DATA_LOG.
      DATA: PP_ACTION TYPE PSPAR-ACTIO.
      LOOP AT IT_PA9004.
        CLEAR P_FLAG.
        CALL FUNCTION 'HR_PSBUFFER_INITIALIZE'.
        PERFORM lock_employee USING IT_PA9004-pernr CHANGING P_FLAG.
        PP_ACTION = IT_PA9004-ACTION.
        PERFORM HR_INFOTYPE_OPERATION USING IT_PA9004 PP_ACTION CHANGING P_FLAG.
        IF P_FLAG IS INITIAL.
          if test_run = space.
            COMMIT WORK.
          else.
            ROLLBACK WORK.
          endif.
          write:/ it_pa9004-pernr,'insert ok'.
        ELSE.
          ROLLBACK WORK.
          write:/ it_pa9004-pernr,'error'.
        ENDIF.
        PERFORM unlock_employee USING IT_PA9004-pernr .
      ENDLOOP.
    ENDFORM.                    " ACTION_INSERT
    FORM LOCK_EMPLOYEE  USING    P_PERNR
                        CHANGING PP_FLAG.
      CHECK PP_FLAG IS INITIAL.
      CLEAR P_RETURN.
      CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
        EXPORTING
          number = P_PERNR
        IMPORTING
          return = P_RETURN
        EXCEPTIONS
          OTHERS = 01.
      CALL FUNCTION 'HR_INITIALIZE_BUFFER'
        EXPORTING
          pernr = P_PERNR.
      IF P_RETURN IS NOT INITIAL.
        PP_FLAG = '1'.
      ENDIF.
    ENDFORM.                    " LOCK_EMPLOYEE
    FORM HR_INFOTYPE_OPERATION  USING    P_PA9004 LIKE IT_PA9004
                                         P_ACTION type PSPAR-ACTIO
                                CHANGING PP_FLAG.
      CHECK PP_FLAG  IS INITIAL.
      DATA: bapipakey type bapipakey,
            P_SUBTY TYPE P9004-SUBTY,
            PP_9004 TYPE TABLE OF  P9004 WITH HEADER LINE.
      CLEAR P_RETURN.
      REFRESH PP_9004.
      MOVE-CORRESPONDING P_PA9004 TO PP_9004.
      IF P_ACTION = 'INS'.
        PP_9004-AEDTM = SY-DATUM.
        PP_9004-UNAME = SY-UNAME.
      ENDIF.
      IF P_ACTION = 'MOD'.
        PP_9004-AEDTM = SY-DATUM.
        PP_9004-UNAME = SY-UNAME.
      ENDIF.
      APPEND PP_9004.
      P_SUBTY = P_LGART.
      CALL FUNCTION 'HR_INFOTYPE_OPERATION'
        EXPORTING
          infty         = '9004'
         subtype       = 'FQ03'
          subtype       = P_SUBTY
          number        = PP_9004-pernr
          validityend   = PP_9004-ENDDA
          validitybegin = PP_9004-begda
         RECORDNUMBER  = pp_9004-seqnr
          record        = PP_9004
           operation     = 'INS'
         operation     = P_ACTION
          nocommit      = 'X'
        IMPORTING
          return        = P_RETURN
          key           = bapipakey
        EXCEPTIONS
          OTHERS        = 0.
      IF P_RETURN IS NOT INITIAL.
        PP_FLAG = '9'.
      ENDIF.
    ENDFORM.                    " HR_INFOTYPE_OPERATION
    FORM UNLOCK_EMPLOYEE  USING    P_PERNR.
      CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
        EXPORTING
          number = p_pernr
        IMPORTING
          return = P_RETURN
        EXCEPTIONS
          OTHERS = 01.
    ENDFORM.                    " UNLOCK_EMPLOYEE

    hi
    i want to create infotype use function(HR_INFOTYPE_OPERATION).
    this infotype is customer infotype.
    the first scenario is:
      i'm be sure no data about one employee in this infotype(9004).
      to call with data upload function and put data into internal table IT_PA9004.
      and the table data as follow:
    one line: it_pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ03',
              it_pa9004-begda = '20080201' , it_pa9004-endda = '20080930'
              it_pa9004-zzvalue = 50 (customer field).
    two line:it_pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ03',
              it_pa9004-begda = '20080201' , it_pa9004-endda = '20080930'
              it_pa9004-zzvalue = 60 (customer field).
    three line:it_pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ03',
              it_pa9004-begda = '20080101' , it_pa9004-endda = '20081031'
              it_pa9004-zzvalue = 70 (customer field).
    four line:it_pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ03',
              it_pa9004-begda = '20080101' , it_pa9004-endda = '20081031'
              it_pa9004-zzvalue = 80 (customer field).
    i run the programme and get information is:
    11022887 insert ok.
    11022887 insert ok.
    11022887 insert ok.
    11022887 insert ok.
    but i use the transation PA30 to view all data:
    in database just exist one row:
    four line:it_pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ03',
              it_pa9004-begda = '20080101' , it_pa9004-endda = '20081031'
              it_pa9004-zzvalue = 80 (customer field).
    the second scenario is:
    in database the infotype have exist one row:
               pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ02',
               pa9004-begda = '20080318' , pa9004-endda = '20080318'
               pa9004-zzvalue = X (customer field).
    and i create another row:
    line:it_pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ02',
              it_pa9004-begda = '20080318' , it_pa9004-endda = '99991231'
              it_pa9004-zzvalue = 80 (customer field)
    i run the programme and get information is:
    11022887 insert ok.
    but in database just exist the first data
               pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ02',
               pa9004-begda = '20080318' , pa9004-endda = '20080318'
               pa9004-zzvalue = X (customer field).
    the three scenario is:
        set  HR_INFOTYPE_OPERATION of import parameter operation = 'MOD'
        in any scenario will get error :not exist subtype .
    what heppend about HR_INFOTYPE_OPERATION working,i had to use this function to
       create other infotype of SAP owner.
       and will create successfully.
    so i thank it may be config Constraints about customer infotype.
    is time Constraints effect?
    so i want to how to check it?
    and if i want to create one infotype for customer using PM01 what some thing
    must be taken into account.
    think you advance.
    partial source code as follow:
    FORM ACTION_INSERT .
      DATA: P_FLAG TYPE C.
      DATA: WA_LOG LIKE LINE OF DATA_LOG.
      DATA: PP_ACTION TYPE PSPAR-ACTIO.
      LOOP AT IT_PA9004.
        CLEAR P_FLAG.
        CALL FUNCTION 'HR_PSBUFFER_INITIALIZE'.
        PERFORM lock_employee USING IT_PA9004-pernr CHANGING P_FLAG.
        PP_ACTION = IT_PA9004-ACTION.
        PERFORM HR_INFOTYPE_OPERATION USING IT_PA9004 PP_ACTION CHANGING P_FLAG.
        IF P_FLAG IS INITIAL.
          if test_run = space.
            COMMIT WORK.
          else.
            ROLLBACK WORK.
          endif.
          write:/ it_pa9004-pernr,'insert ok'.
        ELSE.
          ROLLBACK WORK.
          write:/ it_pa9004-pernr,'error'.
        ENDIF.
        PERFORM unlock_employee USING IT_PA9004-pernr .
      ENDLOOP.
    ENDFORM.                    " ACTION_INSERT
    FORM LOCK_EMPLOYEE  USING    P_PERNR
                        CHANGING PP_FLAG.
      CHECK PP_FLAG IS INITIAL.
      CLEAR P_RETURN.
      CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
        EXPORTING
          number = P_PERNR
        IMPORTING
          return = P_RETURN
        EXCEPTIONS
          OTHERS = 01.
      CALL FUNCTION 'HR_INITIALIZE_BUFFER'
        EXPORTING
          pernr = P_PERNR.
      IF P_RETURN IS NOT INITIAL.
        PP_FLAG = '1'.
      ENDIF.
    ENDFORM.                    " LOCK_EMPLOYEE
    FORM HR_INFOTYPE_OPERATION  USING    P_PA9004 LIKE IT_PA9004
                                         P_ACTION type PSPAR-ACTIO
                                CHANGING PP_FLAG.
      CHECK PP_FLAG  IS INITIAL.
      DATA: bapipakey type bapipakey,
            P_SUBTY TYPE P9004-SUBTY,
            PP_9004 TYPE TABLE OF  P9004 WITH HEADER LINE.
      CLEAR P_RETURN.
      REFRESH PP_9004.
      MOVE-CORRESPONDING P_PA9004 TO PP_9004.
      IF P_ACTION = 'INS'.
        PP_9004-AEDTM = SY-DATUM.
        PP_9004-UNAME = SY-UNAME.
      ENDIF.
      IF P_ACTION = 'MOD'.
        PP_9004-AEDTM = SY-DATUM.
        PP_9004-UNAME = SY-UNAME.
      ENDIF.
      APPEND PP_9004.
      P_SUBTY = P_LGART.
      CALL FUNCTION 'HR_INFOTYPE_OPERATION'
        EXPORTING
          infty         = '9004'
         subtype       = 'FQ03'
          subtype       = P_SUBTY
          number        = PP_9004-pernr
          validityend   = PP_9004-ENDDA
          validitybegin = PP_9004-begda
         RECORDNUMBER  = pp_9004-seqnr
          record        = PP_9004
           operation     = 'INS'
         operation     = P_ACTION
          nocommit      = 'X'
        IMPORTING
          return        = P_RETURN
          key           = bapipakey
        EXCEPTIONS
          OTHERS        = 0.
      IF P_RETURN IS NOT INITIAL.
        PP_FLAG = '9'.
      ENDIF.
    ENDFORM.                    " HR_INFOTYPE_OPERATION
    FORM UNLOCK_EMPLOYEE  USING    P_PERNR.
      CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
        EXPORTING
          number = p_pernr
        IMPORTING
          return = P_RETURN
        EXCEPTIONS
          OTHERS = 01.
    ENDFORM.                    " UNLOCK_EMPLOYEE

  • How to use Log4J in EP for log info

    HI Frndz ..
    As per my requirment i have to give a report of all login users log information. In Java we have  Log4J.jar as per miine it is the best API for generating Log information .
    Actualy am trying to place this code and JAR file in com.sap.portal,runtime.logon.par but am not getting any needful output.
    Colud anyonr suggest me how can  we get the Log data usiing Log4J in Portal.
    Thanks in Advance
    Regards
    Rajesh

    Hi Rajesh,
    please check the below link it might be helpful to you.
    Use Class Log4j for logging java application
    Regards
    Narendra

  • Using ADM for create custom drawed items

    Hi,
    I've started a new color selector plugin for CS3. The Win version works well. But the Mac version doesn't call the draw procs (set by Item Suite's SetDrawProc).
    I've create all items on the dialog box by ADM Dialog Suite (CreateItem).
    All the track and notify procs are called. The dialog's draw proc also called. But the individual item-s draw proc doesn't.
    The dialog created by this:
    ADMInt32 item = gGlobalData->gDialogSuite->Modal
    gGlobalData->gPluginRef,
    GetLocalizedString(locDialogCaption),
    0,
    kADMModalDialogStyle,
    DoUIInit,
    NULL,
    kADMTrackEnterBeforeDialogDoesOK
    In DoUIInit :
    _item = gGlobalData->gDialogSuite->CreateItem(dialog, Enums::kItemColorWheel, kADMUserType, &_colorWheel, ColorWheelItemInitProc, NULL, 0);
    In ColorWheelItemInitProc:
    gGlobalData->gItemSuite->SetDrawProc(item, ColorWheelDrawProc);
    gGlobalData->gItemSuite->SetTrackProc(item, ColorWheelTrackProc);
    The ColorWheelTrackProc's called the ColorWheelDrawProc doesn't.
    I've tried other item types also. They didn't worked too.
    The ADM Doc says: ADM dialogs, ADM items, and ADM entries can all have custom draw handlers, which
    draw the object on the screen.
    So where is the truth?
    Regards
    Zoltán

    Thank you for your notice (twice).
    In the future release of this plugin we will use native dialog code for win and mac. Until then we have to use ADM. Right now we have no other choice because of the deadline.

  • Creating Customer Log Ins

    On one of the sites I'm working on my client would like to have a private price list(s) that his customers would need to log in to access and download.  Is there a simple way to do this with BC?  If not the site was made with Muse but I also have Dreamweaver CC so any suggestions/links to tutorials would be great.  When I searched I found a few for CS6 but they said things have changed for CC and the link provided is just an overview of those changes.

    Hi
    Yes, this is possible with Business Catalyst.
    You can publish the site and use secure zone, include the pages in secure zone so that accessing the pages would requires users to login.
    These documents would help you :
    http://helpx.adobe.com/business-catalyst/partner/add-secure-area-your- site.html
    http://www.bcgurus.com/tutorial/how-to-use-business-catalyst-secure-zo nes
    Additional information :
    http://forums.adobe.com/message/6198352#6198352
    Thanks,
    Sanjit

  • Creating a log analyzer

    Im using log4j to create a log files. If I want view the content i have to go to the file open it and read it. Is there any mechanisn wherein we can monitor the file then and there.
    Thank u

    Try here:
    http://www.google.com/search?hl=no&q=log4j+monitor+file&btnG=S%C3%B8k&lr=

  • Log file is not created using LOG4J

    Hi all,
    I want to use Log4j to log the details about my portal application. I would prefer using Log4j instead of SAP Logging. I have created properties file in my portal application which extends Abstract Portal Component. This my Log4j.properties file which i created under dist\PORTAL-INF\classses folder. I could read the Properties file. There is no problem on that. I am able to refer the API s available in Log4j. I am using Log4j-1[1].2.14.jar.
    log4j.rootLogger = INFO, R1
    log4j.appender.R1 = org.apache.log4j.RollingFileAppender
    log4j.appender.R1.File = LoggerForMyApplicationC.log
    log4j.appender.R1.MaxFileSize=100KB
    log4j.appender.R1.MaxBackupIndex=1
    log4j.appender.R1.layout=org.apache.log4j.PatternLayout
    log4j.appender.R1.layout.ConversionPattern=[%-5p] [%d] [%c] - [%m]%n
    But the problem is Log file is not created (LoggerForMyApplicationC.log) under \logs foler in SAP J2EE Server.
    Do i miss any other configuration? Please bring me the solution.
    Thanks,
    Malar

    Malar,
    Check for the file in the server folder of your server installed directory.
    ie..<Drive where server installed>:\usr\sap\<name>\<instance>\j2ee\<server node>
    Regards
    Abu Bakar

  • Suggestions for changing logging levels?

    I'm looking at using the JDK 1.4 Logging API in my web application. I want the ability to selectively change the logging level for my application component loggers (not the global logging level) without recompiling and redeploying my code. I can live with having to restart my web container.
    As I understand the documentation, the API provides 3 options for customizing logging properties:
    1) Modifying the default logging.properties file in the JRE lib folder, which is not workable for a application component for a number of reasons.
    2) Specifying an alternative properties file when the JVM is started, which is not workable because my web app doesn't start the container.
    3) Specifying a class that acts as the property file loader, again not workable because my web app is only one of many running in my container.
    Additionally, the API docs are not clear on the effect of calling the LogManager method readConfiguration(InputStream ins) with just my properties at some point in my application.
    Does anyone know a reasonable way of controlling logging levels in this fashion?

    Use log4j, and put the log4j.properties in the <webapp>/WEB-INF/classes directory.
    To use log4j, simply put log4j-x.x.x.jar into your <webapp/WEB-INF/lib directory. The java logging setup will automatically use it.

  • Custom Access Level/User groups in BOBJ XI

    Experts,
    We are currently implementing BOBJ XI 3.1. Up on go-live, it will be handled by the Operations team from BOBJ CMC. We do not want to give administrator group for the operations users in CMC. Instead, we want to create custom groups with custom access levels.
    Ex. one for basis who will set up authentication, licenses etc
          one for the functional folks to maintain universes, export universes and set up security.
    Is there a way to set up user groups like this. We were able to successfully restrrict access just to folders, universes by creating a custom access level. But we were not able to do it on other items listed in CMC. Has anyone done this level of access before for the operations or even with in the development team instead of using administrator group>
    Appreciate your response
    Thanks
    Kee

    Hi,
    We can assign different rights to a group by creating custom access levels.
    Create a new group ,and also create custom access level and assign it to the new group.
    you can provide access to different objects to the group by adding rights to the access level.
    Under the access level > click  Included Rights > Add and Remove Rights > Under the Rights Collection > click on System.
    You  could find all the CMC object access rights can be assigned.
    Regards,
    Rameez

  • Custom Logging - Either via Console or a Tool...

    Anyone know of a way to create custom logs in the Console? I am trying to audit specific events and would like to create a log that would show just those. Anyone know of a tool that logs events such as: failed attempts to read files, delete files, run programs, etc. I use ARD to run usage reports, but a specific tool or ability to log would be awesome. Thanks for any help!

    we use kiwi log viewer (about $30). currently it allows you apply color filters based on words, grep searches, etc., but there's no way to filter out stuff you don't want to see or to only display search results. developer says it's on the roadmap. other options are splunk (no experience, full blown version is very expensive, there's a free version...kiwi is more reasonably priced).
    don

  • Duplicatated meaasges using Log4J

    All,
    I am getting duplicate log messages when I try to log messages using log4j. I am logging events within a Timer app that runs every minute.
    Every time I log a message, the messages keep multiplying.
    I found numerous posts on this issues but they all seem to be resolved by setting additivity to false or removed extra appenders. I don't have those conditions.
    Thanks in advance for you assistance.
    package com.Test.Util;
    import org.apache.log4j.ConsoleAppender;
    import org.apache.log4j.Level;
    import org.apache.log4j.Logger;
    import org.apache.log4j.PatternLayout;
    public class TestLogger {
         public static void logMessage(String pMessage, String pLevel)
              Logger myLogger = Logger.getLogger(TestLogger.class);
            PatternLayout myLayout = new PatternLayout("[%c][%l][%p][%thread]: %m%n");
            ConsoleAppender consoleAppender= new ConsoleAppender(myLayout);       
            myLogger.addAppender(consoleAppender);
            myLogger.setAdditivity(false);
            Logger.getRootLogger().setAdditivity(false);
            Logger.getLogger(TestLogger.class).setAdditivity(false);
            Logger.getLogger("com.Test.Util").setAdditivity(false);
            if (pLevel.toUpperCase().equals("WARN")){
                 myLogger.setLevel(Level.WARN);
                 myLogger.warn(pMessage);
            } else if (pLevel.toUpperCase().equals("FATAL")){
                 myLogger.setLevel(Level.FATAL);
                 myLogger.fatal(pMessage);
            } else if (pLevel.toUpperCase().equals("ERROR")){
                 myLogger.setLevel(Level.ERROR);
                myLogger.error(pMessage);
            } else {
                 myLogger.setLevel(Level.INFO);
                myLogger.info(pMessage);
    }Thanks!

    Quite right. Sorry about that.
    Log4j version 1.2.17
    Class with main
    package com.testco;
    import com.testco.TestLogger;
    public class Test {
         public static void main(String[] args) {
              int count = 0;
              while (count<= 5) {
                   try {
                        TestLogger.logMessage("Count:" + count, "INFO");
                        Thread.sleep(5000);
                        count++;
                   } catch (InterruptedException e) {
                        TestLogger.logMessage(e.getMessage(), "ERROR");
    Logging code
    package com.testco;
    import org.apache.log4j.ConsoleAppender;
    import org.apache.log4j.Level;
    import org.apache.log4j.Logger;
    import org.apache.log4j.PatternLayout;
    public class TestLogger {
         public static void logMessage(String pMessage, String pLevel)
            Logger myLogger = Logger.getLogger(TestLogger.class);
            PatternLayout myLayout = new PatternLayout("[%c][%l][%p][%thread]: %m%n");
            ConsoleAppender consoleAppender= new ConsoleAppender(myLayout);       
            myLogger.addAppender(consoleAppender);
            myLogger.setAdditivity(false);
            Logger.getRootLogger().setAdditivity(false);
            Logger.getLogger(TestLogger.class).setAdditivity(false);
            if (pLevel.toUpperCase().equals("WARN")){
                 myLogger.setLevel(Level.WARN);
                 myLogger.warn(pMessage);
            } else if (pLevel.toUpperCase().equals("FATAL")){
                 myLogger.setLevel(Level.FATAL);
                 myLogger.fatal(pMessage);
            } else if (pLevel.toUpperCase().equals("ERROR")){
                 myLogger.setLevel(Level.ERROR);
                myLogger.error(pMessage);
            } else {
                 myLogger.setLevel(Level.INFO);
                myLogger.info(pMessage);
    Output
    [com.testco.TestLogger][com.testco.TestLogger.logMessage(TestLogger.java:32)][INFO][mainhread]: Count:0
    [com.testco.TestLogger][com.testco.TestLogger.logMessage(TestLogger.java:32)][INFO][mainhread]: Count:1
    [com.testco.TestLogger][com.testco.TestLogger.logMessage(TestLogger.java:32)][INFO][mainhread]: Count:1
    [com.testco.TestLogger][com.testco.TestLogger.logMessage(TestLogger.java:32)][INFO][mainhread]: Count:2
    [com.testco.TestLogger][com.testco.TestLogger.logMessage(TestLogger.java:32)][INFO][mainhread]: Count:2
    [com.testco.TestLogger][com.testco.TestLogger.logMessage(TestLogger.java:32)][INFO][mainhread]: Count:2
    [com.testco.TestLogger][com.testco.TestLogger.logMessage(TestLogger.java:32)][INFO][mainhread]: Count:3
    [com.testco.TestLogger][com.testco.TestLogger.logMessage(TestLogger.java:32)][INFO][mainhread]: Count:3
    [com.testco.TestLogger][com.testco.TestLogger.logMessage(TestLogger.java:32)][INFO][mainhread]: Count:3
    [com.testco.TestLogger][com.testco.TestLogger.logMessage(TestLogger.java:32)][INFO][mainhread]: Count:3
    [com.testco.TestLogger][com.testco.TestLogger.logMessage(TestLogger.java:32)][INFO][mainhread]: Count:4
    [com.testco.TestLogger][com.testco.TestLogger.logMessage(TestLogger.java:32)][INFO][mainhread]: Count:4
    [com.testco.TestLogger][com.testco.TestLogger.logMessage(TestLogger.java:32)][INFO][mainhread]: Count:4
    [com.testco.TestLogger][com.testco.TestLogger.logMessage(TestLogger.java:32)][INFO][mainhread]: Count:4
    [com.testco.TestLogger][com.testco.TestLogger.logMessage(TestLogger.java:32)][INFO][mainhread]: Count:4
    [com.testco.TestLogger][com.testco.TestLogger.logMessage(TestLogger.java:32)][INFO][mainhread]: Count:5
    [com.testco.TestLogger][com.testco.TestLogger.logMessage(TestLogger.java:32)][INFO][mainhread]: Count:5
    [com.testco.TestLogger][com.testco.TestLogger.logMessage(TestLogger.java:32)][INFO][mainhread]: Count:5
    [com.testco.TestLogger][com.testco.TestLogger.logMessage(TestLogger.java:32)][INFO][mainhread]: Count:5
    [com.testco.TestLogger][com.testco.TestLogger.logMessage(TestLogger.java:32)][INFO][mainhread]: Count:5
    [com.testco.TestLogger][com.testco.TestLogger.logMessage(TestLogger.java:32)][INFO][mainhread]: Count:5
    Edited by: fatbat on Jun 5, 2013 10:17 PM

  • Create Customer with Account group ZO05 to BP

    Dear RE Experts,
    In my project there are three scenarios related to BP and Customer.
    1) Create BP with Account Group Zo05 to Customer (Which is Working)
    2) Create Customer With Account Group Zo05 to BP
    3) Create only Customer (No BP) With Account Group ZO01,ZO02,ZO03,ZO04,ZO06 and ZO07
    I want help from Experts how to create last two scenarios in RE? What configuration is need?
    What is Tcode to create only customer?????
    Thanks in Advance...
    Manzoor

    Hi,
    Goto SPRO\Cross-applications components\master data synchronization\synchronization control
    check whether is it activated from cutomer --> BP
    And also check the following setting
    Goto SPRO\Cross-applications components\master data synchronization\customer&vendor integration\business partiner settings\settings for customer intration\define BP role for direction customer to BP
    might be it will give some solution to your 2nd problam and finall fir 3rd issue you can use XD01 to create customer and don't assign these account groups in "Define BP role for direction customer to BP"
    Srini

Maybe you are looking for

  • Generating a pdf from JSP

    Hi I have some front end design of a report in jsp...it has tables and images. Is it possible that the response can be sent as a pdf file.....

  • ISight makes croaking sounds and produces audio dropouts in recordings

    Hi! This is weird and hopefully not normal?!? My new iSight made these short cracking sounds (kind of like scratching over sheet of paper) from the beginning. Once when starting up the Mac and all along during video recording or conferencing. That al

  • Spilt water on T420 - Trackpad and Trackpoint L-Click not working

    Hi there, So the other night I (quite stupidly) spilt water on my trackpad. I put it straight in the airing cupboard to dry it out for 2 days, and everything works fine except for my trackpad and the left-click button of my trackpoint. Is there anyth

  • Safari 6.01 on Lion 10.7.5 will not install extensions.

    I have Lion 10.7.5 with all updates, Safar 6.01 as well.  It will NOT install any extensions. I get the message "An error occured while installing this extension." I have repaired permissions, rebuilt launch services. It does not matter what extensio

  • BB Pearl Missing Symbols in Internet Browser

    I am having a problem with missing symbols within the internet browser.  When I attempt to use the symbols button in the internet browser, only one page appears (no matter how many times I push it - it says page 1/1).  There is only the first page of