Package com.atomikos.diagnostics

Examples of com.atomikos.diagnostics.RotatingFileConsole


                AbstractUserTransactionServiceFactory.CONSOLE_FILE_LIMIT_PROPERTY_NAME, p );
        String countString = getTrimmedProperty (
                AbstractUserTransactionServiceFactory.CONSOLE_FILE_COUNT_PROPERTY_NAME, p );
        int limit = Integer.parseInt ( limitString );
        int count = Integer.parseInt ( countString );
        RotatingFileConsole console = new RotatingFileConsole ( consolePath,
                limit, count );

        String logLevel = getTrimmedProperty (
                AbstractUserTransactionServiceFactory.CONSOLE_LOG_LEVEL_PROPERTY_NAME, p );
        int level = Console.WARN;
        if ( "INFO".equalsIgnoreCase ( logLevel ) )
            level = Console.INFO;
        else if ( "DEBUG".equalsIgnoreCase ( logLevel ) )
            level = Console.DEBUG;
        console.setLevel ( level );

        Configuration.addConsole ( console );
       
        try {
      Class.forName("org.slf4j.Logger");
View Full Code Here


                AbstractUserTransactionServiceFactory.CONSOLE_FILE_LIMIT_PROPERTY_NAME, p );
        String countString = getTrimmedProperty (
                AbstractUserTransactionServiceFactory.CONSOLE_FILE_COUNT_PROPERTY_NAME, p );
        int limit = Integer.parseInt ( limitString );
        int count = Integer.parseInt ( countString );
        RotatingFileConsole console = new RotatingFileConsole ( consolePath,
                limit, count );

        String logLevel = getTrimmedProperty (
                AbstractUserTransactionServiceFactory.CONSOLE_LOG_LEVEL_PROPERTY_NAME, p );
        int level = Console.WARN;
        if ( "INFO".equalsIgnoreCase ( logLevel ) )
            level = Console.INFO;
        else if ( "DEBUG".equalsIgnoreCase ( logLevel ) )
            level = Console.DEBUG;
        console.setLevel ( level );

        Configuration.addConsole ( console );
       
        try {
      Class.forName("org.slf4j.Logger");
View Full Code Here

TOP

Related Classes of com.atomikos.diagnostics.RotatingFileConsole

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.