Package rocket.logging.util

Examples of rocket.logging.util.LoggingFactoryConfig


    newMethod.setNative(false);

    final FindLoggerTemplatedFile template = new FindLoggerTemplatedFile();
    newMethod.setBody(template);

    final LoggingFactoryConfig config = this.getLoggingFactoryConfig();
    context.debug("Config: " + config);

    final Iterator<String> names = config.getNames();
    while (names.hasNext()) {
      final String name = names.next();
      final String loggerTypeName = config.getTypeName(name);
      final LoggingLevel loggingLevel = config.getLoggingLevel(name);

      context.debug(name + "=" + loggerTypeName + " (" + loggingLevel + ")");

      final Constructor loggingLevelLogger = this.getConstructorForLoggingLevel(loggingLevel);
      final Constructor logger = this.getTargetLoggerConstructor(loggerTypeName);
View Full Code Here


    newMethod.setAbstract(false);
    newMethod.setFinal(true);
    newMethod.setNative(false);

    final String category = LoggingConstants.ROOT_LOGGER_NAME;
    final LoggingFactoryConfig config = this.getLoggingFactoryConfig();

    final CreateRootLoggerTemplatedFile createLogger = new CreateRootLoggerTemplatedFile();
    newMethod.setBody(createLogger);

    final LoggingLevel loggingLevel = config.getLoggingLevel(category);
    createLogger.setLevelLogger(this.getConstructorForLoggingLevel(loggingLevel));

    final String typeName = config.getTypeName(category);
    createLogger.setLogger(this.getTargetLoggerConstructor(typeName));

    context.debug("Type: " + typeName);

    // rename parameter to a known name.
View Full Code Here

    context.replaceMe(call);
  }

  protected JClassType getLevelLogger(final String name) {
    final LoggingFactoryConfig config = this.getLoggingFactoryConfig();
    final LoggingLevel level = config.getLoggingLevel(name);
    return this.getClassType("rocket.logging.client." + level.toString() + "LevelLogger");
  }
View Full Code Here

    }
    return constructor;
  }

  protected JClassType getTargetLogger(final String name) {
    final LoggingFactoryConfig config = this.getLoggingFactoryConfig();
    final String className = config.getTypeName(name);
    return this.getClassType(className);
  }
View Full Code Here

TOP

Related Classes of rocket.logging.util.LoggingFactoryConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.