Uploaded image for project: 'Log Tool'
  1. Log Tool
  2. LOGTOOL-58

Logger full class name issue in generated sources

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.1.0.Beta2
    • 1.0.3.Final
    • None

      I'm running the log file generation as described in https://community.jboss.org/wiki/JBossLoggingTooling#mavencompilerplugin (jboss-logging-processor 1.0.3.Final) and getting compile errors if the name of my @MessageLogger annotated interface name is Logger (regardless of the package).
      Here is part of the generated source for an annotated class org.jboss.ws.api.Logger:

      package org.jboss.ws.api;
      ...
      @Generated(value = "org.jboss.logging.processor.model.MessageLoggerImplementor", date = "2012-09-18T11:56:34+0200")
      public class Logger_$logger
          extends DelegatingBasicLogger
          implements Serializable, BasicLogger, org.jboss.ws.api.Logger
      {
      ...
      public Logger_$logger(final org.jboss.logging.Logger log) {
              super(log);
          }
      
          public final void creatingUnifiedWebservicesDeploymentModel(final Object unit) {
              super.log.logf(FQCN, (Logger.Level.TRACE), null, ((projectCode +"015503: ")+ creatingUnifiedWebservicesDeploymentModel$str()), unit);
          }
      

      Please note the "Logger.Level.TRACE" should actually be "org.jboss.logging.Logger.Level.TRACE"; the constructor parameter has the proper full class name specified instead.

              jperkins-rhn James Perkins
              rhn-support-asoldano Alessio Soldano
              Archiver:
              rhn-support-sthamilt Stacey Hamilton

                Created:
                Updated:
                Resolved:
                Archived: