All Downloads are FREE. Search and download functionalities are using the official Maven repository.

wvlet.log.JSLogger.scala Maven / Gradle / Ivy

There is a newer version: 24.9.0
Show newest version
package wvlet.log

import scala.scalajs.js.annotation.{JSExport, JSExportTopLevel}

/**
  */
@JSExportTopLevel("log")
object JSLogger {
  @JSExport
  def setDefaultLogLevel(level: String): Boolean = {
    Logger.setDefaultLogLevel(LogLevel(level))
    true
  }

  @JSExport
  def setLogLevel(loggerName: String, level: String): Boolean = {
    Logger(loggerName).setLogLevel(LogLevel(level))
    true
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy