question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add doc comments to public APIs

See original GitHub issue

This repo currently has a lot of public APIs without any doc comments.

There’s already an issue (#610) about adding doc comments for EventId.

There’s also a pretty old PR (#529) to add doc comments to console logger types. Having doc comments to indicate things like the default value of ConsoleLoggerOptions.IncludeScopes could certainly be useful. There are other console logging types that don’t have doc comments like IConsoleLoggerSettings, but I haven’t created an exhaustive list.

None of the (extension) methods on ILoggingBuilder (i.e. AddFilter, AddProvider, ClearProviders, SetMinimuLevel) have doc comments.

I Think it would be particularly useful to note in the SetMinimumLevel doc comments that the default LogLevel is Information meaning that Trace and Debug logs will be ignored. I think this should be noted on any API where a minimum level can be set.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
halter73commented, Jul 29, 2017

I just learned that SetMinimumLoggingLevel gets overridden by what’s configured in appsettings.json when using WebHost.CreateDefaultBuilder. I don’t think this is obvious. While this is probably too detailed to go into a doc comment, I think this should be documented somewhere.

0reactions
analogrelaycommented, May 15, 2020

These will be handled by the docs process in dotnet/runtime now, since the packages have moved there and the XML docs are handled in dotnet/dotnet-api-docs

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Write Doc Comments for the Javadoc Tool
As much as possible, write doc comments as an implementation-independent API specification. Define clearly what is required and what is allowed to vary...
Read more >
API reference code comments
When you're documenting an API, provide a complete API reference, typically generated from source code using document comments that describe all public ......
Read more >
document APIs using /// comments
Learn about documentation comments. You can create documentation for your code by including XML elements in special comment fields.
Read more >
Effective Dart: Documentation
Doc comments aren't just for external consumers of your library's public API. They can also be helpful for understanding private members that are...
Read more >
Add doc comments to the public API · Issue #4
Currently very few symbols have basic documentation. ... Add doc comments to the public API #4. Open. s-ludwig opened this issue on Jan...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found