Skip to content

Commit

Permalink
Fixes and updates
Browse files Browse the repository at this point in the history
  • Loading branch information
darkfrog26 committed Oct 16, 2022
1 parent 907596b commit 7762837
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
13 changes: 8 additions & 5 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ val allScalaVersions = scala3 :: scala2
val compatScalaVersions = List(scala213, scala212)
val scalaJVMVersions = allScalaVersions
val scalaJSVersions = allScalaVersions
val scalaNot211Versions = List(scala3, scala213, scala212)
val scalaNativeVersions = scalaNot211Versions
val scalaNativeVersions = allScalaVersions
val scalaAllExcept211Versions = List(scala213, scala212, scala3)

name := "scribe"
ThisBuild / organization := "com.outr"
ThisBuild / version := "3.10.3"
ThisBuild / version := "3.10.4-SNAPSHOT"
ThisBuild / scalaVersion := scala213
ThisBuild / scalacOptions ++= Seq("-unchecked", "-deprecation")
ThisBuild / javacOptions ++= Seq("-source", "1.8", "-target", "1.8")
Expand Down Expand Up @@ -163,10 +163,13 @@ lazy val cats = crossProject(JVMPlatform, JSPlatform, NativePlatform)
Test / publishArtifact := false
)
.jsSettings(
crossScalaVersions := scalaNot211Versions
crossScalaVersions := scalaAllExcept211Versions
)
.jvmSettings(
crossScalaVersions := scalaNot211Versions
crossScalaVersions := scalaAllExcept211Versions
)
.jsSettings(
crossScalaVersions := scalaAllExcept211Versions
)
.dependsOn(core)

Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ addSbtPlugin("org.portable-scala" % "sbt-scala-native-crossproject" % "1.2.0")

addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.11.0")

addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.y")
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.7")

addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.13")

Expand Down
13 changes: 13 additions & 0 deletions slf4j2/src/main/scala/scribe/slf4j/ScribeMDCAdapter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,17 @@ object ScribeMDCAdapter extends MDCAdapter {
case (key, value) => put(key, value)
}
}

// TODO: Support stacking
override def pushByKey(key: String, value: String): Unit = put(key, value)

override def popByKey(key: String): String = {
val value = get(key)
remove(key)
value
}

override def getCopyOfDequeByKey(key: String): util.Deque[String] = ???

override def clearDequeByKey(key: String): Unit = remove(key)
}

0 comments on commit 7762837

Please sign in to comment.