Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-1309

.NET Core Log.Error ignores parameters and logs format string only

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.0-dp3, 2.4.0
    • Fix Version/s: 2.4.1
    • Component/s: library
    • Labels:
      None

      Description

      Example:

      Line 7282: 2017-02-08 23:09:17.2973|0|Couchbase.Configuration.ConfigContextBase|ERROR|Could not add server {0} for rev#{1}. Exception: {2} 

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

          Hide
          jmorris Jeff Morris added a comment - - edited

          Line 80 of MicrosoftLoggingLogger is the problem:

          public void Error(string message, params object[] args)
                  {
                      _logger.LogError(message);
                  }
          

          Show
          jmorris Jeff Morris added a comment - - edited Line 80 of MicrosoftLoggingLogger is the problem: public void Error(string message, params object[] args) { _logger.LogError(message); }

            People

            • Assignee:
              jmorris Jeff Morris
              Reporter:
              jmorris Jeff Morris
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.