Results 1 to 4 of 4
  1. #1
    linux0kernel is offline Member
    Join Date
    Oct 2008
    Posts
    19
    Rep Power
    0

    Default The tomcat server is not printing the exception to the console

    The tomcat server is not printing the exception to the console.
    Log4j properties:
    PHP Code:
    log4j.rootLogger=INFO, stdout
    #console
    log4j.appender.console=org.apache.log4j.ConsoleAppender
    log4j.appender.console.layout=org.apache.log4j.PatternLayout
    log4j.appender.console.layout.ConversionPattern=%d %p (%F:%L) - [%m]%n
    log4j.appender.stdout.Target=System.out
    
    #logfile
    #log4j.appender.logfile=org.apache.log4j.DailyRollingFileAppender
    #log4j.appender.logfile.File=${catalina.home}/logs/background.log
    log4j.appender.logfile.threshold = logfile
    log4j.appender.logfile.DatePattern = '.'yyyy-MM-dd
    log4j.appender.logfile.Append = true
    #log4j.appender.logfile=org.apache.log4j.RollingFileAppender
    # Log4j Max File Size
    #log4j.appender.logfile.MaxFileSize=5120KB
    # Keep three backup files.
    #log4j.appender.logfile.MaxBackupIndex=5
    # Pattern to output: date priority [category] - message
    log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
    log4j.appender.logfile.layout.ConversionPattern=%d %5p (%F:%L) - [%m]%n
    
    
    # WARNING: Setting the org.springframework logger to DEBUG displays debug information about
    # the request parameter values being bound to the command objects.  This could expose your
    # password in the log file.  If you are sharing your log files, it is recommend you selectively
    # apply DEBUG level logging on a an org.springframework.* package level (i.e. org.springframework.dao)
    log4j.logger.org.springframework.jdbc=ERROR
    #log4j.logger.org.springframework.web.servlet.i18n=DEBUG
    #log4j.logger.org.springframework.web.servlet.view=DEBUG
    #log4j.logger.org.quartz=DEBUG
    log4j.logger.org.jasig=INFO
    log4j.logger.org.hibernate=ERROR
    log4j.logger.org.hibernate.SQL=ERROR
    log4j.logger.org.apache.struts=ERROR
    How can I do?

  2. #2
    linux0kernel is offline Member
    Join Date
    Oct 2008
    Posts
    19
    Rep Power
    0

    Default

    Is anyone in here?

  3. #3
    RamyaSivakanth's Avatar
    RamyaSivakanth is offline Senior Member
    Join Date
    Apr 2009
    Location
    Chennai
    Posts
    841
    Rep Power
    6

  4. #4
    linux0kernel is offline Member
    Join Date
    Oct 2008
    Posts
    19
    Rep Power
    0

Similar Threads

  1. Need help with printing console output to JTextArea
    By ShinTec in forum AWT / Swing
    Replies: 4
    Last Post: 06-04-2010, 10:10 AM
  2. Reg Tomcat in Itaniumn Server
    By ars3181 in forum Advanced Java
    Replies: 0
    Last Post: 11-24-2008, 05:53 AM
  3. Tomcat exception
    By Jack in forum Advanced Java
    Replies: 2
    Last Post: 07-02-2007, 01:46 PM
  4. tomcat exception-error
    By Nick15 in forum Eclipse
    Replies: 2
    Last Post: 05-11-2007, 01:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •