Package rocket.logging.rebind.createrootlogger

Examples of rocket.logging.rebind.createrootlogger.CreateRootLoggerTemplatedFile


    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.
    final NewMethodParameter parameter = (NewMethodParameter) newMethod.getParameters().get(0);
View Full Code Here

TOP

Related Classes of rocket.logging.rebind.createrootlogger.CreateRootLoggerTemplatedFile

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.