1 Reply Latest reply on Feb 13, 2007 5:17 AM by Pete Muir

    logging questions

    jdijkmeijer Newbie

      Hi I've a few questions on logging I remember reading somewhere about it but I do not recall nor can I find it again.
      1) Is the isDebugEnabled() necessary? Will string concatenation still happen if the method call is not reaching the loglevel?
      2) The signature of the logging statements in seam do suggest a formatted text approach like "setting is %s" but I couldn't get that to work. I can imagine with this feature to work that the isEnabled functionality is redundant.
      3) where and how can change the logsetting configuration?

      Any hints or pointers to documentation would be appreciated.


        • 1. Re: logging questions
          Pete Muir Master

          Assuming you are talking about using Seam's @Logger

          1) Not necessary, not sure about string concat

          log.debug("#0 happened to #1", person1.getName(), person2.getName());

          3) If you are using JBoss AS in $JBOSS_HOME/server/default/conf/log4j.xml (google for resources on how to configure this). Not sure for other environments