Skip to content

Commit

Permalink
Release 3.11.2
Browse files Browse the repository at this point in the history
  • Loading branch information
darkfrog26 committed May 16, 2023
1 parent 0e8cda7 commit 8ae6cb2
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,19 @@ For people that want to skip the explanations and see it action, this is the pla
### Dependency Configuration

```scala
libraryDependencies += "com.outr" %% "scribe" % "3.11.1"
libraryDependencies += "com.outr" %% "scribe" % "3.11.2"
```

For Cross-Platform projects (JVM, JS, and/or Native):

```scala
libraryDependencies += "com.outr" %%% "scribe" % "3.11.1"
libraryDependencies += "com.outr" %%% "scribe" % "3.11.2"
```

Or, if you want interoperability with SLF4J (to allow better interoperability with existing libraries using other loggers):

```scala
libraryDependencies += "com.outr" %% "scribe-slf4j" % "3.11.1"
libraryDependencies += "com.outr" %% "scribe-slf4j" % "3.11.2"
```

### Usage
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ val allScalaVersions = List(scala213, scala212, scala3)

name := "scribe"
ThisBuild / organization := "com.outr"
ThisBuild / version := "3.11.2-SNAPSHOT"
ThisBuild / version := "3.11.2"
ThisBuild / scalaVersion := scala213
ThisBuild / scalacOptions ++= Seq("-unchecked", "-deprecation")
ThisBuild / javacOptions ++= Seq("-source", "1.8", "-target", "1.8")
Expand Down
2 changes: 1 addition & 1 deletion core/shared/src/main/scala/scribe/format/FormatBlock.scala
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ object FormatBlock {
val map = MDC.map ++ record.data
if (map.nonEmpty) {
val nl = newLine.format(record)
val prefix = green(bold(string(" ["))).format(record)
val prefix = green(bold(string("["))).format(record)
val postfix = green(bold(string("]"))).format(record)
val entries = nl :: prefix :: map.toList.flatMap {
case (key, value) => List(
Expand Down
2 changes: 1 addition & 1 deletion core/shared/src/main/scala/scribe/format/Formatter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ object Formatter {
newLine
),
multiLine(messages),
mdcMultiLine
multiLine(mdcMultiLine)
)
/**
* A strict format with a focus on consistent width.
Expand Down
2 changes: 1 addition & 1 deletion core/shared/src/test/scala/specs/LoggingSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ class LoggingSpec extends AnyWordSpec with Matchers with Logging {
val logger = Logger().orphan().withHandler(writer = writer, outputFormat = HTMLOutputFormat())
Thread.currentThread().setName("test-thread")
logger.info("Hello, HTML!")
b.toString() should be("""<div class="record"><span style="color: cyan"><strong>2020.11.24&#160;10:26:00:799</strong></span>&#160;<em>test-thread</em>&#160;<span style="color: blue">INFO</span>&#160;<span style="color: green">specs.LoggingSpec.LoggingSpec:470</span><br/>&#160;&#160;&#160;&#160;Hello,&#160;HTML!</div>""")
b.toString() should be("""<div class="record"><span style="color: cyan"><strong>2020.11.24&#160;10:26:00:799</strong></span>&#160;<em>test-thread</em>&#160;<span style="color: blue">INFO</span>&#160;<span style="color: green">specs.LoggingSpec.LoggingSpec:470</span><br/>&#160;&#160;&#160;&#160;Hello,&#160;HTML!&#160;&#160;&#160;&#160;</div>""")
}
}
}
Expand Down

0 comments on commit 8ae6cb2

Please sign in to comment.