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 MessagesListenerprivate Levelprivate PrintStreamprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()private static Stringprivate voidprivate voidvoidprivate static PrintStreamvoidsetLogLevel(Level value) voidsetMessagesListener(MessagesListener listener) voidsetTracing(boolean value) voidvoidvoid
-
Field Details
-
printer
-
listener
-
tracing
private boolean tracing -
logLevel
-
-
Constructor Details
-
LoggingSwitch
-
LoggingSwitch
public LoggingSwitch()
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
newNullPrintStream
-
setMessagesListener
-
setTracing
public void setTracing(boolean value) -
setLogLevel
-
joinArgs
-
trace
-
traceThis
-
trace
-
log
-
logln
-
logln
-