We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 873a84f commit 951167bCopy full SHA for 951167b
src/main/kotlin/com/lambda/interaction/request/LogContext.kt
@@ -44,8 +44,10 @@ interface LogContext {
44
fun buildLogContext(tabMin: Int = 0, builder: LogContextBuilder.() -> Unit): String =
45
LogContextBuilder(tabMin).apply(builder).build()
46
47
+ @LogContextDsl
48
private fun LogContextBuilder.build() = logContext
49
50
51
class LogContextBuilder(val tabMin: Int = 0) {
52
var logContext = ""
53
@@ -68,6 +70,7 @@ interface LogContext {
68
70
logContext += "$text\n"
69
71
}
72
73
74
fun text(builder: LogContextBuilder.() -> Unit) {
75
logContext += LogContextBuilder(tabs).apply(builder).build()
76
0 commit comments