[
https://issues.apache.org/jira/browse/LOG4J2-2433?focusedWorklogId=435705&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-435705
]
ASF GitHub Bot logged work on LOG4J2-2433:
------------------------------------------
Author: ASF GitHub Bot
Created on: 20/May/20 21:32
Start Date: 20/May/20 21:32
Worklog Time Spent: 10m
Work Description: rocketraman edited a comment on pull request #8:
URL:
https://github.com/apache/logging-log4j-kotlin/pull/8#issuecomment-631738478
> I'm curious about the garbage generating behavior of suspending and
resuming the map and stack.
Good question. I added JMH in
https://github.com/apache/logging-log4j-kotlin/pull/12 and IIUC JMH has the
capability to benchmark/report on GC overhead. Would be cool to add such a
benchmark.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 435705)
Time Spent: 1h 10m (was: 1h)
> Support MDCs with Kotlin coroutines
> -----------------------------------
>
> Key: LOG4J2-2433
> URL: https://issues.apache.org/jira/browse/LOG4J2-2433
> Project: Log4j 2
> Issue Type: New Feature
> Components: Kotlin API
> Affects Versions: Kotlin 1.0.0
> Reporter: Raman Gupta
> Priority: Major
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
> Create support for log4j2 MDC when used with Kotlin coroutines. Since
> coroutines do not guarantee which underlying thread is executing code after a
> continuation, a standard ThreadLocal is not sufficient to keep the MDC
> context.
> Kotlin coroutines have a mechanism by which "coroutine local" data can be
> stored. See the reference implementation for SLF4J here:
> https://github.com/Kotlin/kotlinx.coroutines/tree/master/integration/kotlinx-coroutines-slf4j
> We should implement an optional native module to add support for log4j2 MDC
> using the same pattern, that does not require having SLF4J and the
> slf4j-log4j2 implementation on the classpath.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)