Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for OutputEventListenerBackedLoggerContext (0.54 sec)

  1. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/slf4j/OutputEventListenerBackedLoggerContext.java

    import org.slf4j.Logger;
    import org.slf4j.Marker;
    
    import java.util.concurrent.ConcurrentHashMap;
    import java.util.concurrent.ConcurrentMap;
    import java.util.concurrent.atomic.AtomicReference;
    
    public class OutputEventListenerBackedLoggerContext implements ILoggerFactory {
    
        private static final LogLevel DEFAULT_LOG_LEVEL = LogLevel.LIFECYCLE;
    
        static final String HTTP_CLIENT_WIRE_LOGGER_NAME = "org.apache.http.wire";
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  2. platforms/core-runtime/logging/src/main/java/org/slf4j/impl/StaticLoggerBinder.java

        private static final StaticLoggerBinder SINGLETON = new StaticLoggerBinder();
        private static final String LOGGER_FACTORY_CLASS_STR = OutputEventListenerBackedLoggerContext.class.getName();
    
        private final OutputEventListenerBackedLoggerContext factory = new OutputEventListenerBackedLoggerContext(Time.clock());
    
        public static StaticLoggerBinder getSingleton() {
            return SINGLETON;
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  3. platforms/core-runtime/logging/src/testFixtures/groovy/org/gradle/internal/logging/ConfigureLogging.groovy

    import org.gradle.internal.logging.slf4j.OutputEventListenerBackedLoggerContext
    import org.junit.rules.ExternalResource
    import org.slf4j.Logger
    import org.slf4j.LoggerFactory
    
    import java.util.logging.LogManager
    
    class ConfigureLogging extends ExternalResource {
        private final OutputEventListener listener
        private final LogLevel level
        private final OutputEventListenerBackedLoggerContext context
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  4. platforms/core-runtime/logging/src/testFixtures/groovy/org/gradle/internal/logging/ToStringLogger.groovy

    import org.gradle.internal.logging.slf4j.OutputEventListenerBackedLoggerContext
    import org.gradle.internal.time.MockClock
    
    @CompileStatic
    class ToStringLogger extends OutputEventListenerBackedLogger {
    
        private final StringBuilder log = new StringBuilder()
    
        ToStringLogger() {
            super("ToStringLogger", new OutputEventListenerBackedLoggerContext(new MockClock()), new MockClock())
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  5. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/slf4j/Slf4jLoggingConfigurer.java

            if (!(loggerFactory instanceof OutputEventListenerBackedLoggerContext)) {
                // Cannot configure Slf4j logger. This will happen if:
                // - Tests are executed with a custom classloader (e.g using `java.system.class.loader`)
                // - Tests are run with `--module-path`, effectively hiding Gradle classes
                return;
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  6. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/slf4j/OutputEventListenerBackedLoggerContextTest.groovy

    import static org.gradle.api.logging.LogLevel.LIFECYCLE
    import static org.slf4j.Logger.ROOT_LOGGER_NAME
    
    class OutputEventListenerBackedLoggerContextTest extends Specification {
        OutputEventListenerBackedLoggerContext context = new OutputEventListenerBackedLoggerContext(Time.clock())
    
        private OutputEventListenerBackedLogger logger(String name) {
            context.getLogger(name)
        }
    
        def "can retrieve logger named #name"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  7. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/slf4j/OutputEventListenerBackedLogger.java

    public class OutputEventListenerBackedLogger extends BuildOperationAwareLogger {
    
        private final String name;
        private final OutputEventListenerBackedLoggerContext context;
        private final Clock clock;
    
        public OutputEventListenerBackedLogger(String name, OutputEventListenerBackedLoggerContext context, Clock clock) {
            this.name = name;
            this.context = context;
            this.clock = clock;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 2K bytes
    - Viewed (0)
  8. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/slf4j/OutputEventListenerBackedLoggerDefaultConfigurationTest.groovy

            outputs.stdOut
        }
    
        String getErr() {
            outputs.stdErr
        }
    
        def context
    
        Logger logger() {
            if (context == null) {
                context = new OutputEventListenerBackedLoggerContext(Time.clock())
            }
            context.getLogger("foo")
        }
    
        def "messages logged below LIFECYCLE level are ignored"() {
            when:
            logger().trace("debug")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  9. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/slf4j/OutputEventListenerBackedLoggerTest.groovy

        final Clock timeProvider = new Clock() {
            @Override
            long getCurrentTime() {
                return now
            }
    
        }
        final OutputEventListenerBackedLoggerContext context = new OutputEventListenerBackedLoggerContext(timeProvider)
        private final CurrentBuildOperationRef currentBuildOperationRef = CurrentBuildOperationRef.instance()
    
        def setup() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 26.1K bytes
    - Viewed (0)
  10. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/slf4j/Slf4jLoggingConfigurerTest.groovy

        OutputEventListener listener = Mock()
        Slf4jLoggingConfigurer configurer = new Slf4jLoggingConfigurer(listener)
    
        def cleanup() {
            def context = (OutputEventListenerBackedLoggerContext) LoggerFactory.getILoggerFactory()
            context.reset()
        }
    
        def routesSlf4jLogEventsToOutputEventListener() {
            when:
            configurer.configure(LogLevel.INFO)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 6.4K bytes
    - Viewed (0)
Back to top