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

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.0-dp3, 2.4.0
    • 2.4.1
    • library
    • 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

          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);
                  }
          

          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

            jmorris Jeff Morris
            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