Class JettyLoggerFactory

  • All Implemented Interfaces:
    org.slf4j.ILoggerFactory

    public class JettyLoggerFactory
    extends java.lang.Object
    implements org.slf4j.ILoggerFactory
    • Method Detail

      • getJettyLogger

        public JettyLogger getJettyLogger​(java.lang.String name)
        Get a JettyLogger instance, creating if not yet existing.
        Parameters:
        name - the name of the logger
        Returns:
        the JettyLogger instance
      • getLogger

        public org.slf4j.Logger getLogger​(java.lang.String name)
        Main interface for ILoggerFactory
        Specified by:
        getLogger in interface org.slf4j.ILoggerFactory
        Parameters:
        name - the name of the logger
        Returns:
        the Slf4j Logger
      • walkChildLoggers

        protected void walkChildLoggers​(java.lang.String parentName,
                                        java.util.function.Consumer<JettyLogger> childConsumer)
      • condensePackageString

        protected static java.lang.String condensePackageString​(java.lang.String classname)
        Condenses a classname by stripping down the package name to just the first character of each package name segment.Configured
         Examples:
         "org.eclipse.jetty.test.FooTest"           = "oejt.FooTest"
         "org.eclipse.jetty.server.logging.LogTest" = "orjsl.LogTest"
         
        Parameters:
        classname - the fully qualified class name
        Returns:
        the condensed name