Importing log4j.xml and viewing the out put .

hi iam having log4j.xml which i should use to view the output .iam using netbeans IDE .i imported import org.apache.log4j.Logger; then i added log4j.xml in source package .and apache log4j to the libraries .
*.but how to import this log4j.xml file and view the output?*
import java.util.logging.Level;
import org.apache.log4j.Logger;
static Logger logger = Logger.getLogger( Header.class);the how to use * logger* to view ConsoleAppender and PatternLayout

Open a text editor. Go to the File menu and select the Open option. Navigate to the directory where the log4j.xml file is located. Select it and it will appear in your text editor, where you will be able to view it.
That wasn't what you meant, was it? Unfortunately I can't understand what you do mean. You seem to be confusing the act of writing a program which will write output to a file with the act of looking at that file. And you seem to be confusing Java programming operations ("import") with something else that I don't understand.
Could you rephrase your question and perhaps include something that explains what you want to do? Because you have it backwards. Loggers don't view files, viewing is reading. Loggers write files.

Similar Messages

  • Run Clear Case command from java and save the out put in to a file.

    Can any one help me out ...
    I want to execute Clear case command from a java and want to save the out put of this command to a file.
    I am naot able to find out how to start..
    Message was edited by:
    chandra_verma

    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

  • How to load images in List from Xml and view the image and resize the image & save in Flex?

    Hi Friends,
    I am new to flex i am doing application for image resizing rotating and save the resize image.
    I want to load the images from xml file to listcontrol and show that images as a icon in the listview,then i want to drag that image to panel that time it should show it original size of the Image.then it allows user to resize ,crop,rotate the image.then i want to save the resize image,when i save the resize image it should replace the original image in the xmllist.
    I am looking for some useful suggession ,if you dont mind want to see some snippet code.
    It will help me to understand the concept.
    Cheers,
    B.Venkatesan

    Not in Crystal Reports Basic for Visual Studio 2008. You'll have to upgrade to CR 2008 (12.x). Then use kbase [1320507|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do] as a guide on how to do this.
    Ludek

  • How to edit bitmap which is imported in flash using xml and save the edited bitmap back to xml in flash.

    hi all
    It would be appreciated if any one let me know how to edit
    bitmap which is imported in flash using xml and save the edited
    bitmap back to xml in flash.
    Is it posible to save the bitmap data in flash?
    thanks in advance

    Yes you can... but like I said before you need to upload the
    data from the changes you make to a server.
    In terms of the solution... its unlikely that you'll find one
    specifically for your needs. You will have to learn whatever you
    don't know how already and maybe adapt some existing examples to
    your needs.
    To change the visual state of a movie clip... you just do all
    the regular things that you want to do to it using flash... scale,
    rotation, drawing API , textfields etc in actionscript. If you
    don't know how to how to do that stuff, then you need to learn that
    first. That's basic actionscript.
    You can capture the visual state of a movieclip using the
    BitmapData class. That includes a loaded jpeg. You can also
    manipulate bimatp data using the same class. You should read up on
    that if you don't know how to use it or check out the examples
    below for uploading info.
    For uploading to the server:
    Here's an as2 solution that took 15 secs to find using
    google:
    http://www.quasimondo.com/archives/000645.php
    If you're using as3, google search for "jpeg encoder as3" and
    look through that info. There are also historical answers in the
    forums here related to this type of thing that might help as
    well.

  • What is the difference between on new focus and do prepare out put methods

    Hi,
    what is the difference between on new focus and do prepare out put methods.

    Hi Divya,
    DO_PREPARE_OUTPUT method is triggered each time the view is prepared after each event. Normally we redefine this method in order default the initial values based upon the parameter iv_first_time = 'X'. There can be certain other scenarios like putting data validations where this method can be helpful.
    For details on ON_NEW_FOCUS, refer to this [thread|on_new_focus event;
    Thanks
    Vishal

  • Importing the out-put to the exel

    Hi all,
    iam very new to the unix and sql,
    just i want to know how to export the out-put of the query into exel using unix(spool)

    A lot of people rob banks too.
    You can spool an output to a file delimiting columns with commas if you wish. But that is outputting a file not outputting to Excel.
    Personally I'd fire anyone in a data center I caught outputting Oracle into a non-secure unauditable form and putting the organization at risk.

  • Is there a way to import a flash file to an iphone so I could continue to listen to my course and view the power point presentation at the same time? i.e.file source from a DVD?

    Got an iphone 4s and would like to know if there's a way to import files from a DVD source to my phone. I am able to transfer the audio files through iTunes. Is there a way to transfer the flash file that contains the animated slides. Is there an app that I could buy so I could view this on my iphone? Thanks! 

    No. You would have to convert it to a video format that your phone can handle, then sync it over and view the video. I'm sure there are ways to do this, but I don't have direct experience with them as I have no use for flash content.

  • Where we will see the out put of propotional factor

    Hi Experts,
    I have maintained in mc8v (Proportional factor)  after this where is the out put will see for  propotional factor . I have  maintained  in basic proportion is cube ,keyfigure,verion and calculate proportion maintained planning area, keyfiguer in other setting maintained selection profile. Can you tell me output where will see. how it will work. can u elaborate.
    Regards,
    moon

    Moon,
    The keyfigure that is usually updated is APODPDANT.  Find or create a view where this keyfigure is visible (that particular book must have 'manual proportion maintenance' turned on), and you can then review the results of the Prop Factor calculation by opening the planning book using that view. 
    Proportional factor will do nothing unless you have configured your planning area to use it for disaggregation, or you have included this Proportional Factor KF in one of your macros.
    http://help.sap.com/saphelp_scm70/helpdata/EN/66/29fb672fbe11d398240000e8a49608/frameset.htm
    Best Regards,
    DB49

  • Is it possible to display only dynamically selected fields in the out put?

    Is it possible to display only dynamically selected fields in the out put? i need to display set of columns in the selection criteria, but in the output i have display only input given fields. because i need to convert it into .csv file. So i have to display selected fields from internal table. In oracle they are using"execute immediate". is there any equivalent in SAP?
    thanks in advance.

    Hi Remya,
    Are you talking about dynamic programming in ABAP ?
    If yes, there are concepts like RTTS which facilitates it.
    Yes, the select query also supports dynamic selection of fields. ( Please care about ( ) in dynamic sql ).
    Do more research on Field Symbols and statements like ASSIGN COMPONENT OF.
    Regards,
    Philip.

  • Search for a tag in xml and modify the content

    Hi,
    I am quite new to using xml db and i want to know how to search a xml, modify a tag value inside xml and replace the content in xml.
    Please help me to find a solution for this.
    Regards,
    Sprightee

    Hi,
    First important thing : give your database version (SELECT * FROM v$version).
    Please also provide some sample data :
    - a typical XML document you're working with (or abridged version)
    - explain what change(s) you want to do, or give expected output
    - if you're using a table to store the XML (which is preferred), give the DDL

  • Open a url and view the files with it's timestamp

    Hi guys,
    I need to create a flow service in SAP BC to connect to a server by it's url and display it's files with it's timestamps.
    I have never done this b4, and usinf SAP BC makes it harder for me.. Mostly I need to know how to access the server and view the files with their timestamp.
    Any guidance for me will be much appreciated.
    Thank u.

    Yes,
    It's like this. I will connect to an FTP server. Then I need to view the files it the server or folder i specify with their respective timestamps.
    I am using SAP BC and it's webMethods to create the JAVA flow service. I am only now familiarising myself with SAP BC.
    Moreover I have never done a coding to access a server and list it's file. I can do it o view in a local directory using JFrame aand stuff... But SAP BC doesn't support those..
    So If u can give me some guidelines to follow.. i would appreciate it.
    Here's what i have come up with so far
    public static final void ReadFileServer( IData pipeline ) throws ServiceException
    //define input variables
         IDataCursor idcPipeline = pipeline.getCursor();
         String path = null;
         path = (String)idcPipeline.getValue();
         // Check if url is in the pipeline
         if (idcPipeline.first("path"))
              File dir = new File(path);
              String filesFound[]=dir.list();
              long [] age;
              age = new long[filesFound.length];
              for (int i = 0; i < filesFound.length; i++)
                   age = new File(filesFound).lastModified();
              String temp = "";
              for (int i = 0; i < age.length - 1; i++)
                   for(int k = i+1; k < age.length ; k++)
                        if (age > age [k])
                        temp = filesFound;
                        filesFound = filesFound[k];
                        filesFound[k] = temp;
              for (int i = 0; i < filesFound.length; i++)
              //get url out of the pipeline
              path = (String)idcPipeline.getValue();
              //insert the FILES into the pipeline
              idcPipeline.insertAfter("filesFound", filesFound);
              idcPipeline.insertAfter("age", age);
         //If it is not in the pipeline ERROR
         else
         age = "False";
         idcPipeline.insertAfter("path", path);
         //insert the successFlag into the pipeline
         idcPipeline.insertAfter("age", age);
         //Always destroy cursors that you created
         idcPipeline.destroy();
    return;
    }

  • Need to filter the out put of iw38 reprort

    hello Experts,
    i have requirement like need to filter the out put of iw38 report and after that again i need to filter that output by using department and client code and oreder .ned to show out put with 3 push buttons .
    dertails:
    selection screen fields:
    region
    customer  code
    oreder
    date range
    from these 4 fields i need to pass two(order and date range)   fields to  iw38 report and then what ever output i am getting again that should filter by customer code and region which are there in my program
    , need to display the out put with 3 push buttons .
    plz suggest me  with appraoach and sample code .
    Note : i am using using submit and return export memory but its directly showing iw38 output and not coming back.

    Hi ananta,
    The function module LIST_FROM_MEMORY loads the list from the ABAP Memory to an internal table of the row type ABAPLIST.
    The function module WRITE_LIST inserts the content of an internal table of the row type ABAPLIST in the current list.
    The function module DISPLAY_LIST displays the content of an internal table of the row type ABAPLIST in a separate list screen.
    check the below program..
    REPORT  Z642_TEST2.
    DATA list_tab TYPE TABLE OF abaplist.
    SUBMIT riaufk20 EXPORTING LIST TO MEMORY
                                    AND RETURN.
    CALL FUNCTION 'LIST_FROM_MEMORY'
      TABLES
        listobject = list_tab
      EXCEPTIONS
        not_found  = 1
        OTHERS     = 2.
    IF sy-subrc = 0.
      CALL FUNCTION 'WRITE_LIST'
        TABLES
          listobject = list_tab.
    ENDIF.
    write: ' This is calling program', sy-repid.
    Edited by: Rammohan Nagam on Apr 8, 2009 4:05 PM

  • Printing all error messages in the out put report

    Hi all,
    I have MATNR and WERKS data in final internal table now my requirement is ineed to print all the error messages for all the materials (where sy-subrc ne 0) in the out put report. how can i do it for multiple error records will anybody tell me with coding
    The Requirement is like bellow:
    Take material number(s) (MARC-MATNR) from selection screen then check to see if any plants have that material setup as QM active (MARC-QMATV).  If no, then issue message on report.
    Thanks,

    Hi Mythili,
    Hope the attached code helps you...
    TABLES marc.
    TYPE-POOLS: slis.
    TYPES : BEGIN OF g_ty_msg,
            type LIKE sy-msgty,
            msg(120),
           END OF g_ty_msg.
    TYPES: BEGIN OF g_ty_marc,
            matnr TYPE matnr,
            werks TYPE werks_d,
            qmatv TYPE qmatv,
          END OF g_ty_marc.
    DATA: g_t_msg TYPE TABLE OF g_ty_msg,
          g_r_msg TYPE g_ty_msg.
    DATA: g_t_marc TYPE TABLE OF g_ty_marc.
    FIELD-SYMBOLS <fs_marc> TYPE g_ty_marc.
    SELECT-OPTIONS: s_matnr FOR marc-matnr,
                    s_werks FOR marc-werks.
    START-OF-SELECTION.
      SELECT matnr werks qmatv FROM marc
        INTO TABLE g_t_marc
        WHERE matnr IN s_matnr AND
              werks IN s_werks.
      IF g_t_marc IS NOT INITIAL.
        LOOP AT g_t_marc ASSIGNING <fs_marc>.
          IF <fs_marc>-qmatv IS INITIAL.
            g_r_msg-type = 'E'.
            CONCATENATE <fs_marc>-matnr <fs_marc>-werks
              INTO g_r_msg-msg SEPARATED BY space.
            APPEND g_r_msg TO g_t_msg.
            CLEAR g_r_msg.
          ENDIF.
        ENDLOOP.
      ENDIF.
    END-OF-SELECTION.
      PERFORM display_log.
    *&      Form  display_log
          To display error log as an ALV Popup
    FORM display_log .
      CONSTANTS: l_c_type(4)    TYPE c VALUE 'TYPE',
                 l_c_msg(3)     TYPE c VALUE 'MSG'.
      DATA :  l_t_fieldcat TYPE TABLE OF slis_fieldcat_alv,
              l_r_fieldcat TYPE slis_fieldcat_alv.
      DATA :  l_f_line TYPE i.
      CLEAR l_r_fieldcat.
      l_f_line = l_f_line + 1.
      l_r_fieldcat-col_pos    = l_f_line.
      l_r_fieldcat-fieldname  = l_c_type.
      l_r_fieldcat-seltext_m  = 'Type'.
      APPEND l_r_fieldcat TO l_t_fieldcat.
      CLEAR l_r_fieldcat.
      l_f_line = l_f_line + 1.
      l_r_fieldcat-col_pos = l_f_line.
      l_r_fieldcat-fieldname = l_c_msg.
      l_r_fieldcat-seltext_m = 'Message'.
      l_r_fieldcat-outputlen = 120.
      APPEND l_r_fieldcat TO l_t_fieldcat.
    To display the message log as a Popup in the form of ALV List
      CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
        EXPORTING
          i_title       = 'Message Log'
          i_tabname     = 'G_TY_MSG'
          it_fieldcat   = l_t_fieldcat[]
        TABLES
          t_outtab      = g_t_msg
        EXCEPTIONS
          program_error = 1
          OTHERS        = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " display_log
    Best Regards,
    Suresh

  • Hi, I'm trying to to export/import a XML file in the CP8, but it keeps telling me "Cannot import XML".

    Hi, I'm trying to to export/import a XML file in the CP8, but it keeps telling me "Cannot import XML".  To solve the problem I already tried following things:
    1. Exported the file and then attempted to reimport the unedited file into a copy of the CP-project
    2. Edited only a single character (using Notepad++) and once again tried to import the XML-file in the project.
    3. Renamed the XML-file and the CP-project.  Is there anyone who has solved this problem? 
    /J

    Pasted this same reply/reference in your LinkedIn group post...
    Try this thread (re: Run As Admin)
    Import Captions in Captivate 5 - not working?

  • Is it possible to import new slides and keep the audio?

    Hi,
    is it possible to import new slides and keep the audio?
    The designers have changed the housestyle of the powerpoints,
    but the audio has been recorded in captivate in the meanwhile. Is
    it possible to keep the audio of the files and replace all the old
    powerpoint slides with new ones? (not one by one by hand off but
    all in one button press ?)
    Thanks,
    wouter
    My
    Elearning company.

    Hi again Wouter
    Are you saying that your Library has lots of other audio that
    isn't really used on a slide? If so, try right-clicking the Library
    panel and choosing "Select Unused Items". This should highlight all
    the sound files not in use. Now press the Delete key and they
    should be removed from the Library view.
    Now you are faced with just what is left. You may not know
    which clip goes with which slide. So try this. In your Film strip,
    audio attached to the slide should appear as a Speaker icon in the
    corner. Click the Speaker icon and pop down (or up) menu should
    display. Choose "Find in Library". This should highlight the
    associated clip in the Library. Now, if you like, you may
    right-click the file in the Library and rename that to something
    like "Slide X audio" (so you know which clip goes with which
    slide).
    Cheers... Rick

Maybe you are looking for

  • BPM 10g: configuration name [ ProjectName ] and type [SQL] is not defined.

    Hi There, I try to help a colleague with his BPM10g project. When I start the engine in BPM Studio with his project I eventually get this error in a popup: "The configuration name [<ProjectName>] and type [SQL] is not defined. Detail: The connector m

  • How to Upgrade Solaris Package ?

    Hi, I created a solais package (*.pkg), which I've installed with the following command: "pkgadd -d mypkg.pkg" 1. What command should I use in order to upgrade it to a higher version? 2. What are the changes I have to do in the installation pkg for s

  • JSP Data table - Rendering for command buttons.

    Hi All, We are designing a JSP page where results from table have to be thrown on a data table. (h:dataTable) Based on one column value on the data table, we need to render a command button for each row of data table. For example, I select the employ

  • Word won't let me save or close documents

    Hi, my Word won't let me save or close pages- most of the tool bar at the top is greyed out and when I click file the only options are 'open recent' and 'share'. Does anyone know how to fix this? I've got a document open and I can't close or save it.

  • Lion won't go past "install" in App Store

    I tried to instlal Lion a few days ago. Went through the App Store, put in my login stuff, hit buy and then it popped up on my dock with the progress bar. After a few hours it was still not even 25% so I went to bed. The next morning it had not made