You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "rocketraman (via GitHub)" <gi...@apache.org> on 2023/09/09 04:30:21 UTC
[GitHub] [logging-log4j-kotlin] rocketraman opened a new issue, #36: Support LogBuilder API in a kotlin-y way
rocketraman opened a new issue, #36:
URL: https://github.com/apache/logging-log4j-kotlin/issues/36
The Kotlin API does not have an equivalent to the https://logging.apache.org/log4j/2.x/manual/logbuilder.html.
A Kotlin-y approach may use a DSL rather than a builder. For example, a `LoggingScope` passed as a lambda receiver could result in an API that could look something like:
```kotlin
logger.atError {
// `this` here is an instance of `LoggingScope`
// everything optional except log
throwable = ...
marker = ...
location = ...
log = ...
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org