Package pro.gravit.utils.logging
Class SimpleLogHelperImpl
java.lang.Object
pro.gravit.utils.logging.SimpleLogHelperImpl
- All Implemented Interfaces:
LogHelperAppender
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidaddOutput(LogHelper.OutputEnity output)voidaddOutput(LogHelper.Output output, LogHelper.OutputTypes type)booleanbooleanbooleanvoidlog(LogHelper.Level level, String message, boolean sub)voidlogJAnsi(LogHelper.Level level, Supplier<String> plaintext, Supplier<String> jansitext, boolean sub)voidprintLicense(String product)voidprintVersion(String product)voidbooleanremoveOutput(LogHelper.OutputEnity output)voidsetDebugEnabled(boolean debugEnabled)voidsetDevEnabled(boolean stacktraceEnabled)voidsetStacktraceEnabled(boolean stacktraceEnabled)
-
Field Details
-
JANSI
public final boolean JANSI
-
-
Constructor Details
-
SimpleLogHelperImpl
public SimpleLogHelperImpl()
-
-
Method Details
-
addOutput
-
log
- Specified by:
login interfaceLogHelperAppender
-
logJAnsi
public void logJAnsi(LogHelper.Level level, Supplier<String> plaintext, Supplier<String> jansitext, boolean sub)- Specified by:
logJAnsiin interfaceLogHelperAppender
-
isDebugEnabled
public boolean isDebugEnabled()- Specified by:
isDebugEnabledin interfaceLogHelperAppender
-
setDebugEnabled
public void setDebugEnabled(boolean debugEnabled)- Specified by:
setDebugEnabledin interfaceLogHelperAppender
-
isStacktraceEnabled
public boolean isStacktraceEnabled()- Specified by:
isStacktraceEnabledin interfaceLogHelperAppender
-
setStacktraceEnabled
public void setStacktraceEnabled(boolean stacktraceEnabled)- Specified by:
setStacktraceEnabledin interfaceLogHelperAppender
-
isDevEnabled
public boolean isDevEnabled()- Specified by:
isDevEnabledin interfaceLogHelperAppender
-
setDevEnabled
public void setDevEnabled(boolean stacktraceEnabled)- Specified by:
setDevEnabledin interfaceLogHelperAppender
-
addOutput
- Specified by:
addOutputin interfaceLogHelperAppender
-
removeOutput
- Specified by:
removeOutputin interfaceLogHelperAppender
-
rawLog
-
addOutput
-
addOutput
- Throws:
IOException
-
printVersion
- Specified by:
printVersionin interfaceLogHelperAppender
-
printLicense
- Specified by:
printLicensein interfaceLogHelperAppender
-