Init empty logger

This commit is contained in:
InversionSpaces 2023-10-06 11:14:11 +00:00 committed by Nick Pavlov
parent 000e3ed734
commit 5924486895
2 changed files with 7 additions and 1 deletions

View File

@ -27,7 +27,7 @@ object Library {
): Int = {
val code = CTypeConversion.toJavaString(codePointer)
LogFormatter.initLogger(Some(scribe.Level.Info))
LogFormatter.initEmptyLogger()
val result = APICompilation
.compileString(

View File

@ -18,4 +18,10 @@ object LogFormatter {
.withHandler(formatter = formatter, minimumLevel = level)
.replace()
}
def initEmptyLogger(): Logger =
scribe.Logger.root
.clearHandlers()
.clearModifiers()
.replace()
}