Class LifecycleLogger


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

      Constructors 
      Constructor Description
      LifecycleLogger()
      Constructor
      LifecycleLogger​(picocli.CommandLine.Help.ColorScheme colorSchema)
      Constructor
    • 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 webServerConfiguration,
                                       java.util.List<io.undertow.Undertow.ListenerInfo> listenerInfoList)
        Print server startup
        Parameters:
        webServerConfiguration - the web server 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 webServerConfiguration,
                                                     java.util.List<io.undertow.Undertow.ListenerInfo> listenerInfoList)
        Get server message
        Parameters:
        webServerConfiguration - the web server configuration
        listenerInfoList - the listener information
        Returns:
        the server message
      • prepareResourcePath

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