Package org.openquark.util

Examples of org.openquark.util.SimpleConsoleHandler$ConsoleFormatter


       
        Logger logger = Logger.getLogger(getClass().getName());
        logger.setLevel(Level.FINEST);
        logger.setUseParentHandlers(false);
       
        SimpleConsoleHandler handler = new SimpleConsoleHandler();
        handler.setLevel(Level.FINE);
        logger.addHandler(handler);

        logger.info("Car Tool      Version " + Version.CURRENT + "      (c) 2006 Business Objects");

        try {
View Full Code Here


       
        Logger commandLineLogger = Logger.getLogger(JFit.class.getPackage().getName());
        commandLineLogger.setLevel(Level.FINEST);
        commandLineLogger.setUseParentHandlers(false);
       
        StreamHandler consoleHandler = new SimpleConsoleHandler();

        consoleHandler.setLevel(Level.INFO);
        commandLineLogger.addHandler(consoleHandler);
       
        CommandLineOptions commandLineOptions = CommandLineOptions.parseOptions(args, commandLineLogger);

        if (commandLineOptions == null) {
            // There was an error in the provided command-line args.
            return;
        }
        Level verbosity = commandLineOptions.getVerbosity();
        if (verbosity != null) {
            consoleHandler.setLevel(verbosity);
        }
       
        // Log the boilerplate message.
        commandLineLogger.info(toolBoilerPlate);
        commandLineLogger.info("  '-h' for help.");
View Full Code Here

       
        final Logger logger = Logger.getLogger(StandaloneJarTool.class.getName());
        logger.setLevel(Level.FINEST);
        logger.setUseParentHandlers(false);
       
        final SimpleConsoleHandler handler = new SimpleConsoleHandler();
        handler.setLevel(Level.FINE);
        logger.addHandler(handler);

        logger.info(StandaloneJarToolMessages.getString("versionBanner", Version.CURRENT));

        ////
View Full Code Here

           
            final Logger logger = Logger.getLogger(getClass().getName());
            logger.setLevel(Level.FINEST);
            logger.setUseParentHandlers(false);
           
            SimpleConsoleHandler handler = new SimpleConsoleHandler();
            handler.setLevel(Level.FINE);
            logger.addHandler(handler);
          
            ////
            /// Create and compile a workspace through a BasicCALServices
            //
View Full Code Here

            // Setup a logger to intercept messages from our code.
            // and prevent them from being sent to the root logger.
            Logger bobjLogger = Logger.getLogger("org.openquark");
            bobjLogger.setLevel(Level.FINE);
            bobjLogger.setUseParentHandlers(false);
            bobjLogger.addHandler(new SimpleConsoleHandler());

            // WORKAROUND: The following is a hack around the behaviour of the ToolTipManager for Java 1.4 (and potentially earlier)
            // where a tooltip is forcefully repositioned to not extend pass the lower-right corner of its parent.
            // This may cause an intellicut panel entry tooltip to partially/completely cover the entry itself.
            //
View Full Code Here

                if(dialog.isOKSelected()) {
                    Logger logger = Logger.getAnonymousLogger();
                    logger.setLevel(Level.FINEST);
                    logger.setUseParentHandlers(false);
                   
                    SimpleConsoleHandler handler = new SimpleConsoleHandler();
                    handler.setLevel(Level.FINE);
                    logger.addHandler(handler);
                   
                    doGenerateCALDocDocumentationAction(dialog.getConfiguration(logger, workspaceManager));
                }
            }
View Full Code Here

TOP

Related Classes of org.openquark.util.SimpleConsoleHandler$ConsoleFormatter

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.