Package org.eclipse.jetty.start
Class StartLog
- java.lang.Object
-
- org.eclipse.jetty.start.StartLog
-
public class StartLog extends Object
Centralized Place for logging.Because startup cannot rely on Jetty's Logging, an alternative logging is established.
Optional behavior is to create a ${jetty.base}/logs/start.log with whatever output the startup process produces.
-
-
Constructor Summary
Constructors Constructor Description StartLog()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voiddebug(String format, Object... args)static voiddebug(Throwable t)static voidenableDebug()static voidendStartLog()static voiderror(String format, Object... args)static StartLoggetInstance()static PrintStreamgetStream()static voidinfo(String format, Object... args)voidinitialize(BaseHome baseHome, CommandLineConfigSource cmdLineSource)voidinitLogFile(Path logfile)static booleanisDebugEnabled()static voidlog(String type, String msg)static voidlog(String type, String format, Object... args)static PrintStreamsetStream(PrintStream stream)static voidtrace(String format, Object... args)static voidwarn(String format, Object... args)static voidwarn(Throwable t)
-
-
-
Method Detail
-
debug
public static void debug(Throwable t)
-
getInstance
public static StartLog getInstance()
-
warn
public static void warn(Throwable t)
-
isDebugEnabled
public static boolean isDebugEnabled()
-
initialize
public void initialize(BaseHome baseHome, CommandLineConfigSource cmdLineSource) throws IOException
- Throws:
IOException
-
initLogFile
public void initLogFile(Path logfile) throws IOException
- Throws:
IOException
-
enableDebug
public static void enableDebug()
-
endStartLog
public static void endStartLog()
-
getStream
public static PrintStream getStream()
-
setStream
public static PrintStream setStream(PrintStream stream)
-
-