facebook

Console do not show log4j debug info

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #245075 Reply

    z979961
    Member

    Myeclipse default only show the info.

    I defined following log4j.properties and put it under my web application’s source folder. but looks like i still can not see the debug message.

    # Log4J Configuration File
    # This file specifies two different logs
    #
    # 1. Main Application Log
    # 2. Access Log of users attempting to log into the system

    # The root logging configuration
    log4j.rootCategory=DEBUG, rolling, stdout
    log4j.logger.accessLogger=DEBUG, accessFile

    # Define console appender
    log4j.appender.stdout=org.apache.log4j.ConsoleAppender
    log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
    log4j.appender.stdout.layout.ConversionPattern=%d{ddMMMyy HH:mm:ss} %-5p %c %x – %m%n

    # Define application log appender
    log4j.appender.rolling=org.apache.log4j.RollingFileAppender
    log4j.appender.rolling.File=C:\\Servers\\logs\\mydom\\application.log
    log4j.appender.rolling.MaxFileSize=100KB
    log4j.appender.rolling.MaxBackupIndex=5
    log4j.appender.rolling.layout=org.apache.log4j.PatternLayout
    log4j.appender.rolling.layout.ConversionPattern=%d{ddMMMyy HH:mm:ss} %-5p %c %x – %m%n

    #Define access log appender
    log4j.appender.accessFile=org.apache.log4j.RollingFileAppender
    log4j.appender.accessFile.File=C:\\Servers\\logs\\mydom\\access.log
    log4j.appender.accessFile.MaxFileSize=100KB
    log4j.appender.accessFile.MaxBackupIndex=5
    log4j.appender.accessFile.layout=org.apache.log4j.PatternLayout
    log4j.appender.accessFile.layout.ConversionPattern=%d{ddMMMyy HH:mm:ss} %x – %m%n

    #245076 Reply

    z979961
    Member

    Sorry for posting it again. I don’t know how to delete this post.

    #245081 Reply

    z979961
    Member

    One more question. I don’t know if anyone else got the same problem but looks like I can’t change the color of the font in the log console. I went to the Preferences->General->Apearance->Colors and Fonts->Debug->Console font and tried couple times and it didn’t work.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Console do not show log4j debug info

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