Topic
  • 4 replies
  • Latest Post - ‏2011-12-06T16:59:23Z by aryan_raj
aryan_raj
aryan_raj
67 Posts

Pinned topic Logging

‏2011-11-23T16:10:15Z |
Hi All,

I am new to wpf, I want to write the logs to a file instead of writing them to the console, have seen the below entries in the project's log4j.properties file, but couldn't find the file. Looked at the info center, but couldn't find it, Please suggest on how to write the logs to file,

log4j.rootCategory=WARN, Console, General

#
The General appender sends its output to general.txt
log4j.appender.General=org.apache.log4j.FileAppender
log4j.appender.General.File=${bowstreet.rootDirectory}/logs/general.txt
Updated on 2011-12-06T16:59:23Z at 2011-12-06T16:59:23Z by aryan_raj
  • mburati
    mburati
    425 Posts

    Re: Logging

    ‏2011-11-23T18:07:31Z  
    Try searching the WEF documentation for logs. For instance:
    http://www-10.lotus.com/ldd/pfwiki.nsf/dx/Viewing_a_log_wpf701

    The logs are stored in the WEB-INF/logs folder of the deployed application WAR.

    ..mb1
  • aryan_raj
    aryan_raj
    67 Posts

    Re: Logging

    ‏2011-12-06T10:23:31Z  
    • mburati
    • ‏2011-11-23T18:07:31Z
    Try searching the WEF documentation for logs. For instance:
    http://www-10.lotus.com/ldd/pfwiki.nsf/dx/Viewing_a_log_wpf701

    The logs are stored in the WEB-INF/logs folder of the deployed application WAR.

    ..mb1
    Sorry for late reply, but I can only see the below files in logs directory,

    placeholder.txt
    WASCE.log
    wasceDeploymentResults.txt
    wasceUnDeployResults.txt
  • mburati
    mburati
    425 Posts

    Re: Logging

    ‏2011-12-06T15:28:04Z  
    • aryan_raj
    • ‏2011-12-06T10:23:31Z
    Sorry for late reply, but I can only see the below files in logs directory,

    placeholder.txt
    WASCE.log
    wasceDeploymentResults.txt
    wasceUnDeployResults.txt
    Those look like the logs in your project in the Eclipse based designer.

    As mentioned above, please look for the logs in your deployed application WAR on the application server.

    The above mentioned help file describes where the deployed WAR logs would likely be for WebSphere Application Server.
    For WAS CE, the path is slightly different. If you're using WAS CE, then try right clicking on your project, select the WPF project properties and then Server Configurations and then edit the WAS CE server configuration to find out where WAS CE is installed. The apps are typically under a subfolder called repository/geronimo below that. From an Eclipse navigator view of your project (or windows explorer), you could also open the ".bowstreet" properties file at the top of the project and look for the property bowstreet.designer.project.outputLocation to see where the deployed WAR location on disk is.

    ..mb1
  • aryan_raj
    aryan_raj
    67 Posts

    Re: Logging

    ‏2011-12-06T16:59:23Z  
    • mburati
    • ‏2011-12-06T15:28:04Z
    Those look like the logs in your project in the Eclipse based designer.

    As mentioned above, please look for the logs in your deployed application WAR on the application server.

    The above mentioned help file describes where the deployed WAR logs would likely be for WebSphere Application Server.
    For WAS CE, the path is slightly different. If you're using WAS CE, then try right clicking on your project, select the WPF project properties and then Server Configurations and then edit the WAS CE server configuration to find out where WAS CE is installed. The apps are typically under a subfolder called repository/geronimo below that. From an Eclipse navigator view of your project (or windows explorer), you could also open the ".bowstreet" properties file at the top of the project and look for the property bowstreet.designer.project.outputLocation to see where the deployed WAR location on disk is.

    ..mb1
    Thank you mb1, really helpful.