- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for addStandardOutputListener (0.55 sec)
-
platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/services/LoggingServiceRegistryTest.groovy
def logger = LoggerFactory.getLogger("category") def loggingManager = registry.newInstance(LoggingManagerInternal) loggingManager.enableUserStandardOutputListeners() loggingManager.addStandardOutputListener(listener) when: logger.warn("before") then: 0 * listener._ when: loggingManager.levelInternal = LogLevel.WARN loggingManager.start()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:05:18 UTC 2023 - 20.3K bytes - Viewed (0) -
platforms/core-runtime/logging/src/integTest/groovy/org/gradle/internal/logging/console/taskgrouping/AbstractLoggingHooksFunctionalTest.groovy
log.logging.addStandardOutputListener(before) log.logging.addStandardErrorListener(before) System.out.println "ignore" System.err.println "ignore" task other { dependsOn log doLast { // Listener added after log.logging.addStandardOutputListener(after)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:05:18 UTC 2023 - 9.3K bytes - Viewed (0) -
platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/services/DefaultLoggingManager.java
enableStdOutListeners = true; return this; } @Override public void addStandardOutputListener(StandardOutputListener listener) { if (stdoutListeners.add(listener) && started) { loggingOutput.addStandardOutputListener(listener); } } @Override public void addStandardErrorListener(StandardOutputListener listener) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:05:18 UTC 2023 - 15.3K bytes - Viewed (0) -
platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/sink/OutputEventRendererTest.groovy
} def rendersLogEventsToStdOutListener() { def listener = new TestListener() when: renderer.enableUserStandardOutputListeners() renderer.addStandardOutputListener(listener) renderer.onOutput(event('info', LogLevel.INFO)) renderer.onOutput(event('error', LogLevel.ERROR)) then: listener.value.readLines() == ['info'] }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 01 19:25:32 UTC 2024 - 17.8K bytes - Viewed (0) -
platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/services/DefaultLoggingManagerTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:05:18 UTC 2023 - 15.8K bytes - Viewed (0) -
platforms/core-runtime/logging-api/src/main/java/org/gradle/api/logging/LoggingOutput.java
public interface LoggingOutput { /** * Adds a listener which receives output written to standard output by the Gradle logging system. * * @param listener The listener to add. */ void addStandardOutputListener(StandardOutputListener listener); /** * Removes a listener from standard output. * * @param listener The listener to remove. */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:05:18 UTC 2023 - 1.6K bytes - Viewed (0) -
platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/sink/OutputEventRenderer.java
} } @Override public void addStandardOutputListener(StandardOutputListener listener) { synchronized (lock) { assertUserListenersEnabled(); userStdoutListeners.add(listener); } } @Override public void addStandardOutputListener(OutputStream outputStream) { addStandardOutputListener(new StreamBackedStandardOutputListener(outputStream)); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 01 19:25:32 UTC 2024 - 20.4K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/catalog/DefaultVersionCatalogBuilderTest.groovy
def loggingManager = registry.newInstance(LoggingManagerInternal) loggingManager.enableUserStandardOutputListeners() loggingManager.addStandardOutputListener(listener) loggingManager.start() builder.library("foo", "a:b:1.0") when: builder.library("foo", "e:f:1.1") then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sun Dec 17 22:25:43 UTC 2023 - 12.6K bytes - Viewed (0) -
platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/LoggingManagerInternal.java
@Override LoggingManagerInternal captureStandardError(LogLevel level); LoggingManagerInternal setLevelInternal(LogLevel logLevel); /** * Allows {@link org.gradle.api.logging.LoggingOutput#addStandardOutputListener(StandardOutputListener)} and {@link org.gradle.api.logging.LoggingOutput#addStandardErrorListener(StandardOutputListener)} to be used. *
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 17 00:47:05 UTC 2024 - 2.9K bytes - Viewed (0) -
platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/LoggingOutputInternal.java
* encoded using the system character encoding. */ void addStandardOutputListener(OutputStream outputStream); /** * Adds the given {@link java.io.OutputStream} as a logging destination. The stream receives stderr logging formatted according to the current logging settings and
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:05:18 UTC 2023 - 4.4K bytes - Viewed (0)