Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 566 for SetLogger (0.27 sec)

  1. platforms/software/testing-base-infrastructure/src/integTest/resources/org/gradle/api/internal/tasks/testing/JULRedirectorIntegrationTest/loggingConfig/src/main/java/com/example/LumberJack.java

    package com.example;
    
    import java.util.logging.Logger;
    
    public class LumberJack {
        private static final Logger ROOT = Logger.getLogger("");
        private static final Logger OAK = Logger.getLogger("oak");
        private static final Logger ELM = Logger.getLogger("elm");
        private static final Logger ELMER = Logger.getLogger("elm.er");
    
        public void sing() {
            ROOT.fine("Oh, I'm a lumberjack, and I'm okay.");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 13 20:33:30 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  2. platforms/core-runtime/logging/src/test/groovy/org/gradle/api/logging/LoggingTest.groovy

        def ignoresTraceLevelLogging() {
            Logger logger = Logging.getLogger(LoggingTest.class)
    
            when:
            logger.trace("trace")
    
            then:
            0 * _._
        }
    
        def delegatesLevelIsEnabledToSlf4j() {
    
            when:
            logging.setLevel(LogLevel.WARN)
    
            then:
            Logger logger = Logging.getLogger(LoggingTest.class)
            logger.errorEnabled
            logger.quietEnabled
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  3. platforms/core-runtime/logging-api/src/main/java/org/gradle/api/logging/Logger.java

     * levels.</p>
     *
     * <p>You can obtain a {@code Logger} instance using {@link Logging#getLogger(Class)} or {@link
     * Logging#getLogger(String)}. A {@code Logger} instance is also available through {@link
     * org.gradle.api.Project#getLogger()}, {@link org.gradle.api.Task#getLogger()} and {@link
     * org.gradle.api.Script#getLogger()}.</p>
     * <br>
     * <p><b>CAUTION!</b>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  4. platforms/core-runtime/logging/src/integTest/groovy/org/gradle/internal/logging/JavaUtilLoggingSystemIntegrationTest.groovy

        def 'JUL logger.isLoggable corresponds to gradle log level for --debug'() {
            given:
            buildFile << """
                task isLoggable() {
                    doLast {
                        def logger = Logger.getLogger('some-logger')
    
                        assert logger.isLoggable(Level.SEVERE)
                        assert logger.isLoggable(Level.WARNING)
                        assert logger.isLoggable(Level.INFO)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  5. platforms/core-runtime/logging/src/integTest/resources/org/gradle/internal/logging/LoggingIntegrationTest/logging/project1/build.gradle

    org.slf4j.Logger slf4jLogger = org.slf4j.LoggerFactory.getLogger('some-logger')
    slf4jLogger.info('An info log message logged using SLF4j')
    // END SNIPPET use-slf4j
    
    org.apache.commons.logging.Log jclLogger = org.apache.commons.logging.LogFactory.getLog('some-logger')
    jclLogger.info('An info log message logged using JCL')
    
    org.apache.log4j.Logger log4jLogger = org.apache.log4j.Logger.getLogger('some-logger')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/log/LoggerTest.java

        @Rule
        public ExpectedException exception = ExpectedException.none();
    
        private final Logger logger = Logger.getLogger(getClass());
    
        /**
         * @throws Exception
         */
        @Test
        public void testGetLogger() throws Exception {
            assertThat(Logger.getLogger(getClass()), is(sameInstance(Logger.getLogger(getClass()))));
        }
    
        /**
         * @throws Exception
         */
        @Test
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/crawler/transformer/FessFileTransformer.java

    import org.codelibs.fess.mylasta.direction.FessConfig;
    import org.codelibs.fess.util.ComponentUtil;
    
    public class FessFileTransformer extends AbstractFessFileTransformer {
        private static final Logger logger = LogManager.getLogger(FessFileTransformer.class);
    
        @PostConstruct
        public void init() {
            if (logger.isDebugEnabled()) {
                logger.debug("Initialize {}", this.getClass().getSimpleName());
            }
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api/src/integTest/groovy/org/gradle/integtests/tooling/GlobalLoggingManipulationIntegrationTest.groovy

            //(SF) checking if the logger level was not overridden.
            //this gives some confidence that the LogManager was not reset
            given:
            LogManager.getLogManager().getLogger("").setLevel(OFF);
            buildFile << "task hey"
    
            when:
            assertJavaUtilLoggingNotModified()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 6K bytes
    - Viewed (0)
  9. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/support/CompiledKotlinSettingsScript.kt

         */
        val buildscript: ScriptHandler
            get() = host.scriptHandler
    
        private
        class SettingsScriptHost(val host: KotlinScriptHost<Settings>) : Host {
            override fun getLogger(): Logger = Logging.getLogger(Settings::class.java)
            override fun getLogging(): LoggingManager = host.target.serviceOf()
            override fun getFileOperations(): FileOperations = host.fileOperations
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/api/internal/project/ProjectScript.java

        }
    
        @Override
        public LoggingManager getLogging() {
            return getScriptTarget().getLogging();
        }
    
        @Override
        public Logger getLogger() {
            return getScriptTarget().getLogger();
        }
    
        @Override
        public String toString() {
            return getScriptTarget().toString();
        }
    
        @Override
        public ProjectInternal getScriptTarget() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 2K bytes
    - Viewed (0)
Back to top