Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for attachSystemOutAndErr (0.36 sec)

  1. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/sink/OutputEventRendererTest.groovy

        }
    
        def rendersLogEventsToStdOut() {
            when:
            renderer.attachSystemOutAndErr()
            renderer.onOutput(event('message', LogLevel.INFO))
    
            then:
            outputs.stdOut.readLines() == ['message']
            outputs.stdErr == ''
        }
    
        def rendersErrorLogEventsToStdErr() {
            when:
            renderer.attachSystemOutAndErr()
            renderer.onOutput(event('message', LogLevel.ERROR))
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 19:25:32 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  2. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/services/LoggingServiceRegistry.java

         * <li>Configures slf4j, log4j and java util logging to route log messages through the logging system.</li>
         * <li>Routes logging output to the original System.out and System.err as per {@link LoggingManagerInternal#attachSystemOutAndErr()}.</li>
         * <li>Sets log level to {@link org.gradle.api.logging.LogLevel#LIFECYCLE}.</li>
         * </ul>
         *
         * <p>Does nothing until started.</p>
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:34:44 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  3. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/services/DefaultLoggingManager.java

            loggingRouter.attachConsole(outputStream, errorStream, consoleOutput, consoleMetadata);
        }
    
        @Override
        public void attachSystemOutAndErr() {
            loggingOutput.attachSystemOutAndErr();
        }
    
        @Override
        public void flush() {
            loggingRouter.flush();
        }
    
        private static class StartableLoggingRouter implements Stoppable {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  4. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/LoggingOutputInternal.java

    public interface LoggingOutputInternal extends LoggingOutput {
        /**
         * Adds System.out and System.err as logging destinations. The output will include plain text only, with no color or dynamic text.
         */
        void attachSystemOutAndErr();
    
        /**
         * Adds the current processes' stdout and stderr as logging destinations. The output will also include color and dynamic text when one of these
         * is connected to a console.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  5. platforms/core-runtime/daemon-server/src/main/java/org/gradle/launcher/daemon/bootstrap/DaemonMain.java

            redirectOutputsAndInput(log);
    
            // after redirecting we need to add the new std out/err to the renderer singleton
            // so that logging gets its way to the daemon log:
            loggingManager.attachSystemOutAndErr();
    
            // Making the daemon infrastructure log with DEBUG. This is only for the infrastructure!
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  6. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/slf4j/OutputEventListenerBackedLoggerContext.java

            OutputEventRenderer renderer = new OutputEventRenderer(clock, userInputReceiver);
            userInputReceiver.attachConsole(renderer);
            renderer.attachSystemOutAndErr();
            setOutputEventListener(renderer);
        }
    
        public LogLevel getLevel() {
            return level.get();
        }
    
        public void setLevel(LogLevel level) {
            if (level == null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  7. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/sink/OutputEventRenderer.java

                }
                ConsoleConfigureAction.execute(this, consoleOutput, consoleMetadata, outputStream, errorStream);
            }
        }
    
        @Override
        public void attachSystemOutAndErr() {
            addSystemOutAsLoggingDestination();
            addSystemErrAsLoggingDestination();
        }
    
        private void addSystemOutAsLoggingDestination() {
            synchronized (lock) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 19:25:32 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  8. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/AbstractGradleExecuter.java

            LoggingManagerInternal rootLoggingManager = loggingServices.get(DefaultLoggingManagerFactory.class).getRoot();
            rootLoggingManager.attachSystemOutAndErr();
            return loggingServices;
        }
    
        @Override
        public GradleExecuter withTestConsoleAttached() {
            return withTestConsoleAttached(ConsoleAttachment.ATTACHED);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 55.1K bytes
    - Viewed (0)
Back to top