Skip to content

Commit

Permalink
Init empty logger
Browse files Browse the repository at this point in the history
  • Loading branch information
InversionSpaces authored and gurinderu committed May 1, 2024
1 parent 000e3ed commit 5924486
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ object Library {
): Int = {
val code = CTypeConversion.toJavaString(codePointer)

LogFormatter.initLogger(Some(scribe.Level.Info))
LogFormatter.initEmptyLogger()

val result = APICompilation
.compileString(
Expand Down
6 changes: 6 additions & 0 deletions utils/logging/src/main/scala/aqua/logging/LogFormatter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,10 @@ object LogFormatter {
.withHandler(formatter = formatter, minimumLevel = level)
.replace()
}

def initEmptyLogger(): Logger =
scribe.Logger.root
.clearHandlers()
.clearModifiers()
.replace()
}

0 comments on commit 5924486

Please sign in to comment.