Skip to content

Add XML documentation to Android.Util.Log convenience overloads - #11638

Merged
jonathanpeppers merged 3 commits into
mainfrom
copilot/fix-finder-add-xml-docs
Jun 12, 2026
Merged

Add XML documentation to Android.Util.Log convenience overloads#11638
jonathanpeppers merged 3 commits into
mainfrom
copilot/fix-finder-add-xml-docs

Conversation

Copilot AI commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

The 18 public convenience methods in Android.Util.Log (format-string and Throwable-accepting overloads) had no XML documentation comments.

  • Added <summary>, <param>, <returns>, and <seealso> to all 18 methods across Debug, Error, Info, Verbose, Warn, Wtf, and WriteLine
  • Each <summary> references the corresponding LogPriority value via <see cref="..."/>
  • Each method links to the relevant Android documentation via <seealso href="...">
  • No code changes — documentation only

Co-authored-by: jonathanpeppers <840039+jonathanpeppers@users.noreply.github.com>
Copilot AI changed the title [WIP] Add XML documentation to Android.Util.Log convenience methods Add XML documentation to Android.Util.Log convenience overloads Jun 12, 2026
Copilot AI requested a review from jonathanpeppers June 12, 2026 02:55
@jonathanpeppers
jonathanpeppers marked this pull request as ready for review June 12, 2026 13:25
Copilot AI review requested due to automatic review settings June 12, 2026 13:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds XML documentation comments to the Android.Util.Log convenience overloads (composite format string overloads and Java.Lang.Throwable-accepting overloads) so they show up properly in IDE IntelliSense and generated API docs.

Changes:

  • Added <summary>, <param>, and <returns> documentation for the convenience overloads in Android.Util.Log.
  • Added <seealso href="..."> links to the corresponding Android API reference entries.
  • Referenced the relevant LogPriority values in summaries via <see cref="..."/>.

Comment thread src/Mono.Android/Android.Util/Log.cs
Comment thread src/Mono.Android/Android.Util/Log.cs
Comment thread src/Mono.Android/Android.Util/Log.cs
LogPriority does not have a Wtf member; android.util.Log.wtf() uses
the ASSERT priority constant. Update the three <see cref="LogPriority.Wtf"/>
references in the Wtf convenience overloads to <see cref="LogPriority.Assert"/>
and clarify in prose that this is the priority used by Log.wtf, so the
generated XML doc compiles cleanly under warnings-as-errors.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

@jonathanpeppers jonathanpeppers left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Going to ignore the test lanes (network issues).

I will follow up to fix those in another PR shortly.

@jonathanpeppers
jonathanpeppers merged commit b490053 into main Jun 12, 2026
33 of 40 checks passed
@jonathanpeppers
jonathanpeppers deleted the copilot/fix-finder-add-xml-docs branch June 12, 2026 16:31
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants