Class LoggingSwitch
java.lang.Object
io.github.mkoncek.classpathless.impl.LoggingSwitch
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
LoggingSwitch.Null
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate MessagesListener
private Level
private PrintStream
private boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
private static String
private void
private void
void
private static PrintStream
void
setLogLevel
(Level value) void
setMessagesListener
(MessagesListener listener) void
setTracing
(boolean value) void
void
void
-
Field Details
-
printer
-
listener
-
tracing
private boolean tracing -
logLevel
-
-
Constructor Details
-
LoggingSwitch
-
LoggingSwitch
public LoggingSwitch()
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
newNullPrintStream
-
setMessagesListener
-
setTracing
public void setTracing(boolean value) -
setLogLevel
-
joinArgs
-
trace
-
traceThis
-
trace
-
log
-
logln
-
logln
-