Skip to content

Releases: Numichi/reactive-logger

v3.0.0-RC3

11 Sep 11:41
eb54c77
Compare
Choose a tag to compare
v3.0.0-RC3 Pre-release
Pre-release

Changed builder to getLogger method. Builder methods have been removed.

  • CoroutineKLogger.getLogger(...)
  • CoroutineLogger.getLogger(...)
  • ReactorKLogger.getLogger(...)
  • ReactorLogger.getLogger(...)

v3.0.0-RC1

01 Sep 20:45
Compare
Choose a tag to compare
v3.0.0-RC1 Pre-release
Pre-release
fix: unnecessary line removal

v2.1.3

05 Aug 19:50
Compare
Choose a tag to compare
  • Add new setter methods to follow the java builder pattern and "with" methods have been set to deprecated. They will be removed on v2.3.0

v2.1.2

03 Aug 19:17
Compare
Choose a tag to compare
  • Upgrade dependencies packages
  • io.github.microutils:kotlin-logging-jvm dependency set to api mode. (If you still don't reach the "mu" root package, you still need to set the dependency in your project.)

v2.1.1

31 May 17:17
9be3fe9
Compare
Choose a tag to compare

Simplification

MDCContext.modifyContext(Cotnext, (MDC) -> Unit): Context

// Mono or Flux
.contextWrite { ctx -> MDCContext.modifyContext(ctx) { it: MDC -> it["key"] = "value" } }

Library limitation in Coroutine scope

Its use has not changed. There was no need for Context. ContextView is enough for function.

// old
typealias CCResolveFn<E> = suspend (CCKey<out E>) -> Context?
fun <E : CoroutineContext.Element> builder(element: CCKey<E>, contextExtractive: CCResolveFn<E>): Builder<E> { ... }

// new
typealias CCResolveFn<E> = suspend (CCKey<out E>) -> ContextView?
fun <E : CoroutineContext.Element> builder(element: CCKey<E>, contextExtractive: CCResolveFn<E>): Builder<E> { ... }

// usage:
CoroutineLogger.builder(ReactorContext) { coroutineContext[it]?.context }.build()

v2.1.0

29 May 11:32
Compare
Choose a tag to compare

Feature:

extract MDC from Context in "contextWrite" and thus simplifies context writing

val data = MDCContext.read() // Mono<MDC> by default context key
    .mapNotNull { it["key"] }
    .contextWrite {
        val mdc = MDCContext.getMDCOrDefault(it) // return: MDC, if not exist define, it will create a default
        mdc["key"] = "example"
        MDCContext.put(it, mdc) // result: Context
    }

StepVerifier.create(data2)
    .expectNext("example")
    .verifyComplete()

Deprecated

  • withEnableError builder method because the name is not accurate. EnableError and paramter is false.. It is misleading. Change to:
    • if not called, the error configuration is disabled
    • withError() set to true by default
    • you can configure it directly by the withError(boolean).

v2.0.1

29 May 09:19
Compare
Choose a tag to compare

The MDC class can be extended

v2.0.0

28 May 22:48
Compare
Choose a tag to compare
Release 2.0.0

v2.0.0-RC1

22 May 20:04
Compare
Choose a tag to compare
v2.0.0-RC1 Pre-release
Pre-release
Add LoggerFactory and set to ContextView where not need Context

v2.0.0-RC0

16 Feb 20:24
Compare
Choose a tag to compare
v2.0.0-RC0 Pre-release
Pre-release
v2.0.0-RC0