File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 1+ ## [ 2.0.0-beta22] ( https://github.com/kevin-lee/logger-f/issues?q=is%3Aissue+is%3Aclosed+milestone%3Av2-m1+closed%3A2023-10-02..2023-11-07 ) - 2023-11-08
2+
3+ ## Change
4+
5+ * Change the ` LogMessage ` parameter in the ` log(F[A]) ` method from ` NotIgnorable ` to ` MaybeIgnorable ` (#498 )
6+ This could be required and useful for case like
7+
8+ ``` scala
9+ final case class Something (id : Int , name : String )
10+
11+ val fa : F [Something ] = ...
12+ Log [F ].log(fa) {
13+ case Something (0 , _) => ignore
14+ case Something (n, name) => info(s " Something: id= $n, name= $name" )
15+ }
16+ ```
17+
18+ ## Improvement
19+
20+ * Remove unnecessary re-evaluation of ` String ` in ` logS ` (#500 )
21+ ` msg() ` and ` message ` (call-by-name) below in line 61 (Scala 2) and line 62 (Scala 3) were replaced with a single lazy evaluation.
22+
23+ https://github.com/kevin-lee/logger-f/blob/47a0ad183bf4b3b847661143e31a85c302d02146/modules/logger-f-core/shared/src/main/scala-2/loggerf/core/Log.scala#L56-L62
24+
25+ https://github.com/kevin-lee/logger-f/blob/47a0ad183bf4b3b847661143e31a85c302d02146/modules/logger-f-core/shared/src/main/scala-3/loggerf/core/Log.scala#L59-L63
Original file line number Diff line number Diff line change 1- ThisBuild / version := " 2.0.0-SNAPSHOT "
1+ ThisBuild / version := " 2.0.0-beta22 "
You can’t perform that action at this time.
0 commit comments