facebook

How to show log4j output to the console view?

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #267433 Reply

    pwang888
    Member

    I added code in my web application to use log4j for logging. The output from log4j logger goes to the server log which is fine. But I can not see the output in the console view. the System.out.println output goes to both the server log and the console. I am using JBOSS 4.0.5 locally and deploy my application directly to the local JBOSS server from within MyEclipse.

    It’s a pain to open another window to view the server log which has a lot of information I don’t need. Anyone figured out a way to do it?

    #267435

    pwang888
    Member

    The default log4j setting for the JBOSS is INFO. After it was changed to DEBUG in the /conf/log4j.xml file, the console view is now showing everything.

    #273911

    anderssv
    Member

    Alright, this is not the same issue, but I thought I could follow up under the same title to collect more info.

    I was running Eclipse 3.2 and MyEclipse 5.5 starting a Sun AS 8.2 server with logging to the console, everything was fine. I decided to do a trial run of Eclipse Europa and MyEclipse 6.0 M1, and _almost_ everything is working correctly.

    When I start the appserver it shows the output from Sun AS, but it doesn’t show any of the output that Log4J is configured to show. It even shows a status message where it loads the correct properties file:

    [#|2007-08-15T13:02:20.989+0200|INFO|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=10;|WebModule[/sak]Initializing Log4J from [classpath:log4j-sak-servlet.properties]|#]

    This works in my old setup, but not the new. The webapp starts up fine and seems to work, it just doesn’t show the output in the console. The console is also set to switch to on System.out and System.err.

    Any idea?

    #273912

    anderssv
    Member

    Uh, never mind. It is working now. Sorry. 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: How to show log4j output to the console view?

You must be logged in to post in the forum log in