Class LifecycleLogger
- java.lang.Object
-
- com.github.toolarium.jwebserver.logger.LifecycleLogger
-
public class LifecycleLogger extends java.lang.ObjectThe startup logger
-
-
Constructor Summary
Constructors Constructor Description LifecycleLogger()ConstructorLifecycleLogger(picocli.CommandLine.Help.ColorScheme colorSchema)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description picocli.CommandLine.Help.ColorSchemegetColorScheme()Get the color schemajava.lang.StringpreapreThrowable(java.lang.Throwable t)Convert aThrowableto aString, with message and stack traces extracted and colored according toColorScheme.java.lang.StringprepareResourcePath(IWebServerConfiguration webServerConfiguration)Prepare the resource pathjava.lang.StringprepareServerStartup(IWebServerConfiguration webServerConfiguration, java.util.List<io.undertow.Undertow.ListenerInfo> listenerInfoList)Get server messagevoidprintServerStartup(IWebServerConfiguration webServerConfiguration, java.util.List<io.undertow.Undertow.ListenerInfo> listenerInfoList)Print server startup
-
-
-
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 configurationlistenerInfoList- the listener information
-
preapreThrowable
public java.lang.String preapreThrowable(java.lang.Throwable t)
Convert aThrowableto aString, with message and stack traces extracted and colored according toColorScheme.- Parameters:
t- theThrowableto 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 configurationlistenerInfoList- 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
-
-