How to log to a file using the log-configuration.xml?

Hello *,
I created following log-configuration.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log-configuration SYSTEM "log-configuration.dtd">
<log-configuration>
     <log-formatters>
          <log-formatter name="DefaultFormatter" pattern="%25d %-60l %s: %m" type="TraceFormatter"/>
     </log-formatters>
     <log-destinations>
          <log-destination count="10" effective-severity="ALL" limit="1000000" name="DefaultDestination" pattern="FDLB_GUI.%g.trc" type="FileLog">
               <formatter-ref name="DefaultFormatter"/>
          </log-destination>
     </log-destinations>
     <log-controllers>
          <log-controller effective-severity="ALL" maximum-severity="FATAL" minimum-severity="DEBUG" name="DefaultController">
               <associated-destinations>
                    <destination-ref association-type="LOG" name="DefaultDestination"/>
               </associated-destinations>
          </log-controller>
     </log-controllers>
</log-configuration>
From a Web Dynpro view I want to use the log-controller. I'm using the default logger:
Logging location.
  private static final com.sap.tc.logging.Location logger =
    com.sap.tc.logging.Location.getLocation(EinstiegView.class);
In the wdInit method I want to log a simple message:
  public void wdDoInit()
    //@@begin wdDoInit()
    logger.setEffectiveSeverity(com.sap.tc.logging.Severity.ALL);
    logger.fatalT("test logging to new file logger");
    //@@end wdDoInit()
I see the message in the defaultTrace.0.log, but my own log file doesn't appear.
How to address the log-controller of my log-configuration.xml?
Thanks in advance,
Jürgen Dufner

Hi,
I guess the follwing part of your log-configuration is wrong:
<log-controller
effective-severity="ALL"
maximum-severity="FATAL" m
nimum-severity="DEBUG"
name="DefaultController">
Try to change in log-configuration the value for name in <log-controller> to the start sequence of the packages to be logged. E.g., all our packages should start with com.yourcompanyname.projectname
To log all messages from classes in these packages make the name = com.yourcompanyname.projectname.
Hope that helps,
Regards, Astrid
Therefore I list

Similar Messages

  • Hi, how do i share big files using the creative cloud , it says download the crative cloud connection, but then sends me nowhere that says that

    hi, how do i share big files using the creative cloud , it says download the crative cloud connection, but then sends me nowhere that says that

    Hi Jonty, check the file size limit:  Creative Cloud Desktop application FAQ
    You can also check the details around sharing and collaborating files: Sync and share files and folders with collaborators | Adobe Creative Cloud tutorials
    Atul_Saini

  • ADF mobile: how do I upload a file using the rest adapter api

    Hello,
    I want to upload files using the rest adapter. How would I upload files such as pdfs, images (png, jpg ..) etc.. Some code would be appreciated.
    Thanks,

    Thanks Frank,
    The back-end is functioning in the following way (using Jersey and handling input streams):
        @POST
        @Path("/uploadFile")
        @Consumes(MediaType.MULTIPART_FORM_DATA)
        public Response uploadFile(@FormDataParam("file") InputStream uploadedInputStream, @FormDataParam("file") FormDataContentDisposition fileDetail) {
            String uploadedFileLocation = "D:\\temp\\uploadsTest\\" + fileDetail.getFileName();
            // save it (this function reads from the input stream)
            writeToFile(uploadedInputStream, uploadedFileLocation);
            String output = "File uploaded to : " + uploadedFileLocation;
            return Response.status(200).entity(output).build();
         Is there a way to send data over a stream?
         Thanks,

  • How to read two text files using the Read from spreadsheet.vi and then plot it

    I need to read two text files using the read from spreadsheet function and then plot these files over time.
    The file with the .res extention is the RMS values (dt and df) and the second file contains the amplitude of a frequency spectrum.
    I really appreciate any help..thanks
    Attachments:
    RMS.txt ‏1 KB
    FREQUENCY.txt ‏1 KB

    From NI Example Finder:
    Write to Text File.vi
    Read from Text File.vi
    Jean-Marc
    LV2009 and LV2013
    Free PDF Report with iTextSharp

  • How to Run teststand sequence file using the LabVIEW

    Hi
    I want the execute the Teststand Sequence file using the LabVIEW .Net containers.I didnt find out the Execution Parameter in the .Net Container.Do you any suggestion regarding this question.Please let me know.
    Jayavel

    TestStand comes with loads of Operator Interface examples some simple, some full fledged. You can find it in teststand public folder win7 path here:C:\Users\Public\Documents\National Instruments\TestStand 2010 SP1\UserInterfaces
    You can take these examples or use ideas from here, also read the teststand reference manual. It has a section about Operator Interfaces.
    Beginner? Try LabVIEW Basics
    Sharing bits of code? Try Snippets or LAVA Code Capture Tool
    Have you tried Quick Drop?, Visit QD Community.

  • How to sign multiple jar files using the same certificate..?

    hi,
    I want to run my application using Java Web Start.. i am using around 16 different jar files out of which around 13 are 3rd party component jars. I want to sign these jars using the same certifcate..., i am using the follwing code to sign the jars:
    (for the jar file ischeduler.jar)
    keytool -genkey -alias signFiles91 -keystore dtss -keypass dtss1351 -dname "cn=dtss" -storepass decisioncraft
    jarsigner -keystore dtss -storepass decisioncraft -keypass dtss1351 -signedjar signedischeduler.jar ischeduler.jar signFiles91
    keytool -export -keystore dtss -storepass decisioncraft -alias signFiles91 -file ischeduler.cer
    keytool -import -alias DCA2 -file ischeduler.cer -keystore Impischeduler -storepass ischeduler
    (for the jar file ischedulerclient.jar)
    keytool -genkey -alias signFiles92 -keystore dtss -keypass dtss1351 -dname "cn=dtss" -storepass decisioncraft
    jarsigner -keystore dtss -storepass decisioncraft -keypass dtss1351 -signedjar signedischedulerclient.jar ischedulerclient.jar signFiles92
    keytool -export -keystore dtss -storepass decisioncraft -alias signFiles92 -file ischeduler.cer
    keytool -import -alias DCA3 -file ischeduler.cer -keystore Impischeduler -storepass ischeduler
    but when i use the above signed jars in my application i get an error saying:
    "jars not signed by the same certificate"
    can someone plz tel me wher is the error....thanx
    andy

    Well for mulitple signing of jar files you can use ANT tool. Its easier and faster.
    Regarding the present problem -- hmm.. well it looks like you are using 2 different alias names for signing the jar file. Try using the same alias name and that might solve your problem.
    regards
    Saby

  • How to repair corrupted xp files with the Toshiba recovery dvd pkg

    Hello all, my Satellite a105-s4054 has some corrupted xp os files.  Please advise on how to repair only these files using the recovery dvd pks included with my sytem.  I would rather not have to do a complete format and install.   And it is now obvious which of the individual files listed should be replaced to repair the corrupted files. 
    Is there  way to just replace the corrupted files?
    Thank you

    Satellite A105-S4054 
    ..replace the corrupted files?
    If they are system files, this will fix them.
       Description of Windows XP and Windows Server 2003 System File Checker (Sfc.exe)
    -Jerry

  • Slideshow Entitlement Banner Using the Store Configurator

    I want to create a simple banner with two states. One that shows only when you are not logged in and a second that only shows when you are logged in. I used the DPS Configurator and selected Slideshow Entitlement Banner, added two slides, the first with "Hide if entitled to latest issue" checked, and the second with "Hide if not entitled to issue" checked. So far everything is working as expected.
    But here is the problem. Our app is using restricted distribution to entitle Group A only to Group A folios and Group be to Group B folios. If I am logged in as Group B the banners display as expected, but if I log in as Group A they do not. The problem is that the latest issue is entitled to Group B, since it was published a minute after the Group a folio.
    Any suggestions?

    Thanks for the response but this will not work, because if a member of group a signs in they will still see the slide prompting them to sign in as well as the slide saying they are signed in.
    Is there any other way to accomplish the same thing?
    I wanted to see if I could edit the code so I tried to download the zip file and load the files on our server, but then nothing is being displayed in the banner area.
    Again thanks for your help and I appreciate any suggestions that you may have.

  • How to get the job logs from sm35 by using the queue id and session name?

    hi all,
    can any one please let me know how to read the job log from sm35 by using the session name and queue id. i have the job name and job count but is it possible to download the job log by using the queue id and session name.
    FYI..
    i want to read this job log and i want to send it to an email id.
    -> i am using the job_open and submitting the zreport via job name and job count and then i am using the function module  job_close.
    but this is not working in my scenario i have the queue id and session name by using this two i want to get the job log is there any function module available or code please provide me some inputs.
    thanks in advance,
    koushik

    Hi Bharath,
    If you want to download it to the local file then you can follow the instructions in the below link.
    How to download Batch Input Session Log?
    Regards,
    Sachin

  • HT4796 I have made a file using the Pages app.I mailed it to a friend.When she tried opening the same file on her pc at home , It did not open.Please help me as to how to open the file in the Microsoft word format on her pc.

    I have made a file using the Pages app.I mailed it to a friend.When she tried opening the same file on her pc at home , It did not open.Please help me as to how to open the file in the Microsoft word format on her pc.

    Send it as a PDF.

  • How can i remove secure files from the trash? I tried click away the secure notification in info, but still i cann't remove them. Is there a buttoncombination to use?

    How can i remove secure files from the trash? I tried click away the secure notification in info, but still i cann't remove them. Is there a buttoncombination to use?

    If you are unable to empty the trash, try holding the Option key while selecting Empty Trash.
    Otherwise, some steps in the following link may help you.
    http://support.apple.com/kb/ht1526

  • How to apply  special right  to the PDF  file using the LiveCycle Rights Management Server.?

    How to apply special right to the PDF  file using the LiveCycle Rights Management Server.?
    I want  to edit bar code field data using Adobe Reader. Bar Code field was designed and data was changing using Acrobat X1 Professional (Trial Version). But can't do so in adobe reader.

    I think that product has nothing to do with it. You would use LiveCycle Reader Extensions.

  • How do I generate the pdf file using the name of a field.  How can I help

    how do I generate the pdf file using the name of a field.  How can I help

    Hi,
    here's a sample.
    LiveCycle Blog: Formulare in bestimmte Verzeichnisse speichern und nach Inhalt aus Formularfeld benennen //Save forms to…

  • How to view the file using the content

    Hi all,
    I have uploaded the data from a binary file to an internal table using GUI_UPLOAD.
    Could you please suggest any way how i can view the file using the content.
    The binary content looks as follows.
    345DCC27F35A291DFD5496E0609E8ED08F3405AF5FE3DDC574166CDE0D79B7A174BC6
    D87597FA824B3E56E82E451D4C2B4D32A423279A668BB6690C7E9956E90CFE766CB37
    39E70D650300006D08000011000000776F72642F73657474696E67732E786D6C9C56D
    69B6197B7F5BDD4C58841ECC06943522630781EC71767DF5504F0B6B3C4674DEE0D46
    Thanks,
    Vishnu

    Hi all,
    Thanks a lot for the reply.
    Here, my requirement is to open the content as a file.
    I have used 'GUI_UPLOAD' FM to upload the contents & need the same file(PDF, JPG, DOC etc) to be displayed using the content.
    Eg., If i upload an Image using the FM 'GUI_UPLOAD', based on the contents & extention can i see an image?
    Please help me in the regard,
    Thanks,
    Vishnu

  • How to access the database jar file using the derby 10.2.1.6 database ?

    Hi,
    How to access the database jar file using the derby 10.2.1.6 database ?
    I have used like below. And i am getting the following the error:
    "org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'org.apache.derby.jdbc.EmbeddedDriver'
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1136)"
    My context.xml file looks like this:
    <Context crossContext="true">
    <Resource name="jdbc/derby" auth="Container"
    type="javax.sql.DataSource" driverClassName="org.apache.derby.jdbc.EmbeddedDriver"
    url="jdbc:derby:jar(\CalypsoDemo\database.jar)samples"
    username="xxx" password="xxx" maxActive="20" maxIdle="10"
    maxWait="-1"/>
    </Context>
    What could be the reason.?
    Any suggestions will be appriciated.
    Thanks in Advance,
    Gana.

    ya, I have restarted. Can you please tell me whether the path which i am giving is right or not in the context file?
    Thanks,
    Gana.

Maybe you are looking for

  • Function module to open share drive path

    Hello Experts,                          Can any one tell me any function module or any solution to open share drive path by pressing F4. Thanks.

  • I need to add symbols!!

    Hello there and Greetings, I need to add a few symbols to my keyboard, but I don't know how to do it. I need to add a registered symbol and a copyright symbol. I have been looking on my mac for hours and can't find out how to do it, and I can't find

  • How can I display a multiple grid panels into columns of grid panel

    I have a GridPanel "grid". It is set to four columns. And I have Gridpanel elementGrid in which I have components such us button ,OutputText ,.. .And I load the gridPanels elementGrid into "grid" using this. List<UIComponent> childComponents=new Arra

  • Solution Directory - Configuration Tab is freezed

    Hi Experts, I can't modify or create any item in the Configuration Tab of the Solution Directory. I am not really used to this interface, can anyone explain why this is happening and how I should resolve the issue? Many thanks, Aldo

  • Is there a workaround on installation of drivers (Windows support drivers)?

    I get a crash everytime I try to install these drivers on my Bootcamp partition. Windows does a crash dump and restarts computer. I do not know exactly at what point during the installation of the Windows Support drivers this happens. Other comments: