Skip to content

Commit

Permalink
Release 3.12.1
Browse files Browse the repository at this point in the history
  • Loading branch information
darkfrog26 committed Aug 29, 2023
1 parent 97d0d87 commit a5f1875
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 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.12.0"
libraryDependencies += "com.outr" %% "scribe" % "3.12.1"
```

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

```scala
libraryDependencies += "com.outr" %%% "scribe" % "3.12.0"
libraryDependencies += "com.outr" %%% "scribe" % "3.12.1"
```

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

```scala
libraryDependencies += "com.outr" %% "scribe-slf4j" % "3.12.0"
libraryDependencies += "com.outr" %% "scribe-slf4j" % "3.12.1"
```

### 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.12.0"
ThisBuild / version := "3.12.1"
ThisBuild / scalaVersion := scala213
ThisBuild / scalacOptions ++= Seq("-unchecked", "-deprecation")
ThisBuild / javacOptions ++= Seq("-source", "1.8", "-target", "1.8")
Expand Down
7 changes: 7 additions & 0 deletions core/shared/src/main/scala/scribe/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ package object scribe extends LoggerSupport[Unit] {
*/
def data(key: String, value: => Any): LogFeature = LogFeature(_(key) = () => value)

/**
* LogFeature convenience functionality to set a map of data on a log
*/
def data(map: Map[String, Any]): LogFeature = LogFeature { r =>
map.foldLeft(r)((record, tuple) => record(tuple._1) = () => tuple._2)
}

/**
* LogFeature convenience functionality to set a booster on a log
*/
Expand Down

0 comments on commit a5f1875

Please sign in to comment.