2 Replies Latest reply on Dec 4, 2007 7:37 AM by Michel De Bruin

    bootlog

    Michel De Bruin Newbie

      Hi

      Don't know if this is possible, but can you have a datestamp in the bootlog for JBoss 405 server

      many thanks
      M.

        • 1. Re: bootlog
          jaikiran pai Master

          There's a log4j.properties inside the run.jar file in %JBOSS_HOME%/bin folder. Currently it contains the following:

          ### ====================================================================== ###
          ## ##
          ## JBoss Bootstrap Log4j Configuration ##
          ## ##
          ### ====================================================================== ###
          
          ### $Id: log4j.properties 41281 2006-02-18 00:05:17Z starksm $ ###
          
          log4j.rootCategory=DEBUG, FILE, CONSOLE
          
          ### A bootstrap file appender
          log4j.appender.FILE=org.jboss.logging.appender.FileAppender
          log4j.appender.FILE.File=${jboss.server.log.dir}/boot.log
          log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
          log4j.appender.FILE.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c{1}] %m%n
          log4j.appender.FILE.Append=false
          
          log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
          log4j.appender.CONSOLE.Threshold=INFO
          log4j.appender.CONSOLE.Target=System.out
          log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
          log4j.appender.CONSOLE.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c{1}] %m%n
          
          


          You can edit and save this file back in the jar to change the log pattern. Changing
          log4j.appender.FILE.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c{1}] %m%n


          to

          log4j.appender.FILE.layout.ConversionPattern=%d %-5p [%c{1}] %m%n


          should be enough.

          • 2. Re: bootlog
            Michel De Bruin Newbie

             

            "jaikiran" wrote:
            There's a log4j.properties inside the run.jar file in %JBOSS_HOME%/bin folder. Currently it contains the following:

            ### ====================================================================== ###
            ## ##
            ## JBoss Bootstrap Log4j Configuration ##
            ## ##
            ### ====================================================================== ###
            
            ### $Id: log4j.properties 41281 2006-02-18 00:05:17Z starksm $ ###
            
            log4j.rootCategory=DEBUG, FILE, CONSOLE
            
            ### A bootstrap file appender
            log4j.appender.FILE=org.jboss.logging.appender.FileAppender
            log4j.appender.FILE.File=${jboss.server.log.dir}/boot.log
            log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
            log4j.appender.FILE.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c{1}] %m%n
            log4j.appender.FILE.Append=false
            
            log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
            log4j.appender.CONSOLE.Threshold=INFO
            log4j.appender.CONSOLE.Target=System.out
            log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
            log4j.appender.CONSOLE.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c{1}] %m%n
            
            


            You can edit and save this file back in the jar to change the log pattern. Changing
            log4j.appender.FILE.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c{1}] %m%n


            to

            log4j.appender.FILE.layout.ConversionPattern=%d %-5p [%c{1}] %m%n


            should be enough.





            Yessss indead it was, thank you very much, as a newby there are so many things to learn!b thanks again.