[ 
https://issues.apache.org/jira/browse/LOG4J2-2668?focusedWorklogId=304508&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-304508
 ]

ASF GitHub Bot logged work on LOG4J2-2668:
------------------------------------------

                Author: ASF GitHub Bot
            Created on: 30/Aug/19 18:35
            Start Date: 30/Aug/19 18:35
    Worklog Time Spent: 10m 
      Work Description: vimalaguti commented on pull request #3: add support 
for scala 2.13.0 [LOG4J2-2668]
URL: https://github.com/apache/logging-log4j-scala/pull/3#discussion_r319631658
 
 

 ##########
 File path: 
src/main/scala-2.13+/org/apache/logging/log4j/scala/LoggingContext.scala
 ##########
 @@ -0,0 +1,75 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache license, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the license for the specific language governing permissions and
+ * limitations under the license.
+ */
+package org.apache.logging.log4j.scala
+
+import org.apache.logging.log4j.ThreadContext
+
+import scala.jdk.CollectionConverters._
+import scala.collection.{immutable, mutable}
+
+/** Manages the context data (context map, MDC) that is added to log events.
+  *
+  * A wrapper around `org.apache.logging.log4j.ThreadContext`.
+  */
+object LoggingContext extends mutable.Map[String, String] {
 
 Review comment:
   Yep, unluckily the mutable.Map in scala 2.13 has some methods that where 
`final`, and because they moved again the java-compat implicits I choose to 
keep things clean - notice also the new `IterableOnce` interface.
   There is a scala collection compatibility but is only for 2.11 and 2.12, or 
just drop 2.10 and we can clean up all the multiple src folders.
 
----------------------------------------------------------------
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: 304508)
    Time Spent: 40m  (was: 0.5h)

> Add support for Scala 2.13
> --------------------------
>
>                 Key: LOG4J2-2668
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2668
>             Project: Log4j 2
>          Issue Type: New Feature
>          Components: Scala API
>    Affects Versions: 11.0
>            Reporter: Matt Sicker
>            Assignee: Matt Sicker
>            Priority: Major
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> There's already an early access module for 2.13 from back when it was in 
> development. Now that 2.13 is released, we can make our own release.
> PR available: https://github.com/apache/logging-log4j-scala/pull/2



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to