-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Switch to Serilog #441
Conversation
Compiles, but running & tests are still broken.
This allows to optionally write events through other dynamically-added MEL `ILoggerProviders`.
…-serilog # Conflicts: # src/Microsoft.ComponentDetection.Detectors/cocoapods/PodComponentDetector.cs # src/Microsoft.ComponentDetection.Detectors/go/GoComponentDetector.cs # src/Microsoft.ComponentDetection.Detectors/ivy/IvyDetector.cs # src/Microsoft.ComponentDetection.Detectors/maven/MavenCommandService.cs # src/Microsoft.ComponentDetection.Detectors/npm/NpmComponentDetector.cs # src/Microsoft.ComponentDetection.Detectors/nuget/NuGetComponentDetector.cs # src/Microsoft.ComponentDetection.Detectors/pip/PythonResolver.cs # src/Microsoft.ComponentDetection.Detectors/ruby/RubyComponentDetector.cs # src/Microsoft.ComponentDetection.Detectors/rust/RustCrateDetector.cs # src/Microsoft.ComponentDetection.Detectors/vcpkg/VcpkgComponentDetector.cs # src/Microsoft.ComponentDetection.Detectors/yarn/Parsers/YarnLockParser.cs # src/Microsoft.ComponentDetection.Detectors/yarn/YarnLockComponentDetector.cs # src/Microsoft.ComponentDetection.Orchestrator/Services/DetectorProcessingService.cs # src/Microsoft.ComponentDetection/Program.cs # test/Microsoft.ComponentDetection.Detectors.Tests/YarnLockDetectorTests.cs # test/Microsoft.ComponentDetection.Detectors.Tests/YarnParserTests.cs
👋 Hi! It looks like you modified some files in the
If none of the above scenarios apply, feel free to ignore this comment 🙂 |
# Conflicts: # src/Microsoft.ComponentDetection.Common/Logger.cs
I think only |
src/Microsoft.ComponentDetection.Common/DependencyGraph/ComponentRecorder.cs
Show resolved
Hide resolved
src/Microsoft.ComponentDetection.Contracts/Microsoft.ComponentDetection.Contracts.csproj
Outdated
Show resolved
Hide resolved
...osoft.ComponentDetection.Detectors/nuget/NuGetProjectModelProjectCentricComponentDetector.cs
Outdated
Show resolved
Hide resolved
test/Microsoft.ComponentDetection.Common.Tests/ComponentStreamEnumerableTests.cs
Show resolved
Hide resolved
test/Microsoft.ComponentDetection.Detectors.Tests/IvyDetectorTests.cs
Outdated
Show resolved
Hide resolved
test/Microsoft.ComponentDetection.Detectors.Tests/LinuxContainerDetectorTests.cs
Outdated
Show resolved
Hide resolved
Can you also remove |
src/Microsoft.ComponentDetection.Detectors/cocoapods/PodComponentDetector.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.ComponentDetection.Detectors/pip/PipComponentDetector.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.ComponentDetection.Detectors/vcpkg/VcpkgComponentDetector.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.ComponentDetection.Common/Microsoft.ComponentDetection.Common.csproj
Outdated
Show resolved
Hide resolved
src/Microsoft.ComponentDetection.Orchestrator/Microsoft.ComponentDetection.Orchestrator.csproj
Outdated
Show resolved
Hide resolved
# Conflicts: # Directory.Packages.props
src/Microsoft.ComponentDetection.Detectors/npm/NpmComponentDetectorWithRoots.cs
Show resolved
Hide resolved
src/Microsoft.ComponentDetection.Detectors/pnpm/PnpmComponentDetector.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.ComponentDetection.Detectors/ruby/RubyComponentDetector.cs
Outdated
Show resolved
Hide resolved
...crosoft.ComponentDetection.Orchestrator.Tests/Services/DetectorListingCommandServiceTests.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to merge once all tests pass
# Conflicts: # Directory.Packages.props
src/Microsoft.ComponentDetection.Orchestrator/Extensions/ServiceCollectionExtensions.cs
Outdated
Show resolved
Hide resolved
should fix the verification tests!
The previous logger added a space after `Detection time: xx.yyyyyy seconds. `. The new logger does not have a trailing space.
This PR switches from our slow custom-built logging service to Serilog with
Microsoft.Extensions.Loggging
support. Each class gets their own injected logger unique to their type.We also create a
LoggerProviderCollection
and will allow our dependents to dynamically attach other sinks such as ApplicationInsights.New format:
Closes #436