Package org.eclipse.jetty.start
Class StartLog
- java.lang.Object
-
- org.eclipse.jetty.start.StartLog
-
public class StartLog extends java.lang.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 void
debug(java.lang.String format, java.lang.Object... args)
static void
debug(java.lang.Throwable t)
static void
enableDebug()
static void
endStartLog()
static void
error(java.lang.String format, java.lang.Object... args)
static StartLog
getInstance()
static java.io.PrintStream
getStream()
static void
info(java.lang.String format, java.lang.Object... args)
void
initialize(BaseHome baseHome, CommandLineConfigSource cmdLineSource)
void
initLogFile(java.nio.file.Path logfile)
static boolean
isDebugEnabled()
static void
log(java.lang.String type, java.lang.String msg)
static void
log(java.lang.String type, java.lang.String format, java.lang.Object... args)
static java.io.PrintStream
setStream(java.io.PrintStream stream)
static void
trace(java.lang.String format, java.lang.Object... args)
static void
warn(java.lang.String format, java.lang.Object... args)
static void
warn(java.lang.Throwable t)
-
-
-
Method Detail
-
debug
public static void debug(java.lang.String format, java.lang.Object... args)
-
trace
public static void trace(java.lang.String format, java.lang.Object... args)
-
debug
public static void debug(java.lang.Throwable t)
-
getInstance
public static StartLog getInstance()
-
log
public static void log(java.lang.String type, java.lang.String msg)
-
log
public static void log(java.lang.String type, java.lang.String format, java.lang.Object... args)
-
info
public static void info(java.lang.String format, java.lang.Object... args)
-
warn
public static void warn(java.lang.String format, java.lang.Object... args)
-
error
public static void error(java.lang.String format, java.lang.Object... args)
-
warn
public static void warn(java.lang.Throwable t)
-
isDebugEnabled
public static boolean isDebugEnabled()
-
initialize
public void initialize(BaseHome baseHome, CommandLineConfigSource cmdLineSource) throws java.io.IOException
- Throws:
java.io.IOException
-
initLogFile
public void initLogFile(java.nio.file.Path logfile) throws java.io.IOException
- Throws:
java.io.IOException
-
enableDebug
public static void enableDebug()
-
endStartLog
public static void endStartLog()
-
getStream
public static java.io.PrintStream getStream()
-
setStream
public static java.io.PrintStream setStream(java.io.PrintStream stream)
-
-