Class LifecycleLogger


  • public class LifecycleLogger
    extends java.lang.Object
    The startup logger
    • Constructor Detail

      • LifecycleLogger

        public LifecycleLogger()
        Constructor
      • LifecycleLogger

        public LifecycleLogger​(picocli.CommandLine.Help.ColorScheme colorSchema)
        Constructor
        Parameters:
        colorSchema - the color schema
    • Method Detail

      • getColorScheme

        public picocli.CommandLine.Help.ColorScheme getColorScheme()
        Get the color schema
        Returns:
        Get the color schema
      • printServerStartup

        public void printServerStartup​(IWebServerConfiguration configuration,
                                       java.util.List<io.undertow.Undertow.ListenerInfo> listenerInfoList)
        Print server startup
        Parameters:
        configuration - the configuration
        listenerInfoList - the listener information
      • preapreThrowable

        public java.lang.String preapreThrowable​(java.lang.Throwable t)
        Convert a Throwable to a String , with message and stack traces extracted and colored according to ColorScheme.
        Parameters:
        t - the Throwable to be converted
        Returns:
        converted and colored String
      • prepareServerStartup

        public java.lang.String prepareServerStartup​(IWebServerConfiguration configuration,
                                                     java.util.List<io.undertow.Undertow.ListenerInfo> listenerInfoList)
        Get server message
        Parameters:
        configuration - the configuration
        listenerInfoList - the listener information
        Returns:
        the server message
      • prepareResourcePath

        public java.lang.String prepareResourcePath​(IWebServerConfiguration configuration)
        Prepare the resource path
        Parameters:
        configuration - the configuration
        Returns:
        the prepared resource path