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

The XML for logging is incorrect

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.1
    • Component/s: docs
    • Labels:

      Description

      Visual studios does not like the following line in the logging XML:

      <param name="ConversionPattern" value="%d [%t] %-5p %c [%x] <%X

      {auth}

      > - %m%n" />

      It also feel strange that no where else in the documentation we have an example of use the App.config even thought we say you can use it to config the client.

        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 -

          The example is in the "Configuring the client" section: http://docs.couchbase.com/developer/dotnet-2.0/configuring-the-client.html

          Here is a better example for the conversion pattern: "%date [%thread] %level %logger - %message%newline"

          The conversion pattern is part of log4net, so you can customize it as needed: http://logging.apache.org/log4net/release/sdk/log4net.Layout.PatternLayout.html

          Show
          jmorris Jeff Morris added a comment - The example is in the "Configuring the client" section: http://docs.couchbase.com/developer/dotnet-2.0/configuring-the-client.html Here is a better example for the conversion pattern: "%date [%thread] %level %logger - %message%newline" The conversion pattern is part of log4net, so you can customize it as needed: http://logging.apache.org/log4net/release/sdk/log4net.Layout.PatternLayout.html
          Hide
          pvarley Patrick Varley added a comment -

          The error message is "Name cannot begin with the '<' character"

          Show
          pvarley Patrick Varley added a comment - The error message is "Name cannot begin with the '<' character"
          Hide
          jmorris Jeff Morris added a comment -

          Yes, this part "<%X

          {auth}

          >" is suspect.

          Show
          jmorris Jeff Morris added a comment - Yes, this part "<%X {auth} >" is suspect.
          Hide
          pvarley Patrick Varley added a comment -

          Thanks for pointing out the XML, I saw the tables and never scroll past them, bad me

          Show
          pvarley Patrick Varley added a comment - Thanks for pointing out the XML, I saw the tables and never scroll past them, bad me
          Hide
          jmorris Jeff Morris added a comment -

          will be included in release notes commit.

          Show
          jmorris Jeff Morris added a comment - will be included in release notes commit.

            People

            Assignee:
            jmorris Jeff Morris
            Reporter:
            pvarley Patrick Varley
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes

                  PagerDuty