Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0.0
    • 4.0.0
    • SQL
    • None

    Description

      In the current implementation:

       

      class LogEntry(messageWithContext: => MessageWithContext) {
        def message: String = messageWithContext.message
        def context: java.util.HashMap[String, String] = messageWithContext.context
      }
      
      def logInfo(entry: LogEntry): Unit = {
        if (log.isInfoEnabled) {
          withLogContext(entry.context) {
            log.info(entry.message)
          }
        }
      }

       

       

      The field `messageWithContext` is constructed twice, one from `entry.context` and another one from `entry.message`.

      We should improve this.

      Attachments

        Activity

          People

            Gengliang.Wang Gengliang Wang
            Gengliang.Wang Gengliang Wang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: