-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(cherry picked from commit 876c111)
- Loading branch information
Aristos Pasalides
committed
Dec 15, 2021
1 parent
dd6833e
commit 38b28ff
Showing
3 changed files
with
59 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package ktee | ||
|
||
import org.slf4j.Logger | ||
|
||
inline fun <T> T.tee(fn: (T) -> String) = this | ||
inline fun <T> T.tee(marker: String = "") = this | ||
inline fun <T> T.teeToInfo(logger: Logger, fn: (T) -> String) = this | ||
inline fun <T> T.teeToDebug(logger: Logger, fn: (T) -> String) = this | ||
inline fun <T> T.teeToTrace(logger: Logger, fn: (T) -> String) = this | ||
inline fun <T> T.teeToInfo(logger: Logger, message: String = "{}") = this | ||
inline fun <T> T.teeToDebug(logger: Logger, message: String = "{}") = this | ||
inline fun <T> T.teeToTrace(logger: Logger, message: String = "{}") = this | ||
|
||
|
||
|
||
|