Erik Wölfel

Results 7 comments of Erik Wölfel

I also experienced this error. Reverting to 1.11.1 helped resolving the issue for now. The reason seems to be that the django framework checks the trusted origins (see https://docs.djangoproject.com/en/4.0/ref/settings/#csrf-trusted-origins) I...

you can do the following: ``` private val logger = KotlinLogging.logger {} class MyClass { init { logger.info{ "Example" } } } ``` or if you like to use a...

The `org.slf4j.Marker` does not seem to be usable, however you could supply a `io.github.oshai.kotlinlogging.Marker` established by `KMarkerFactory.getMarker("someMarkerName")` this way you can log the following way ``` logger.info(throwable = null, myMarker)...

I was thinking about providing a PR containing just a marker and a message which would be more readable like this: ``` logger.info(myMarker) { "some Message" } ``` However if...

PR is created under https://github.com/oshai/kotlin-logging/pull/408

> @ewoelfel that is also useful to have, but it doesn't solve _this_ issue at all. That is true concerning the `org.slf4j.Marker`, but as suggested [here](https://github.com/oshai/kotlin-logging/issues/360#issuecomment-2008688120) you could use a...

> That's the opposite of what's needed. > I already have the `org.slf4j.Marker` and want to pass it to the logger, which only accepts a `io.github.oshai.kotlinlogging.Marker` . I see, maybe...