You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2019/10/15 08:50:00 UTC

[jira] [Work logged] (LOG4J2-2668) Add support for Scala 2.13

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

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

                Author: ASF GitHub Bot
            Created on: 15/Oct/19 08:49
            Start Date: 15/Oct/19 08:49
    Worklog Time Spent: 10m 
      Work Description: Guidoooch 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_r334825127
 
 

 ##########
 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:
   This looks very good, I did similar changes locally and have just a couple of comments:
 
----------------------------------------------------------------
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:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 328410)
    Time Spent: 1h 20m  (was: 1h 10m)

> 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
>              Labels: pull-request-available
>          Time Spent: 1h 20m
>  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.4#803005)