Class StartLog
java.lang.Object
org.eclipse.jetty.start.StartLog
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate static PrintStreamprivate static final StartLogprivate static PrintStreamprivate static PrintStreamprivate static final PrintStreamprivate static final PrintStreamprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidstatic voidstatic voidstatic voidstatic StartLogstatic PrintStreamstatic voidvoidinitialize(BaseHome baseHome, CommandLineConfigSource cmdLineSource) voidinitLogFile(Path logfile) static booleanstatic voidstatic voidstatic PrintStreamsetStream(PrintStream stream) static voidstatic voidstatic void
-
Field Details
-
stdout
-
stderr
-
out
-
err
-
logStream
-
INSTANCE
-
trace
private boolean trace -
debug
private boolean debug
-
-
Constructor Details
-
StartLog
public StartLog()
-
-
Method Details
-
debug
-
trace
-
debug
-
getInstance
-
log
-
log
-
info
-
warn
-
error
-
warn
-
isDebugEnabled
public static boolean isDebugEnabled() -
initialize
- Throws:
IOException
-
initLogFile
- Throws:
IOException
-
enableDebug
public static void enableDebug() -
endStartLog
public static void endStartLog() -
getStream
-
setStream
-