
Logging in .NET
Quiz
•
Architecture
•
Professional Development
•
Hard
Khiem DN
Used 4+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Benefit of structured logging?
Log data can be query
Faster logging
Less code
Easy to debug
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the standard logging library in .NET?
Microsoft.Extension.Logging
System.Extension.Logging
System.Logging
Microsoft.Logging
3.
MULTIPLE SELECT QUESTION
20 sec • 2 pts
What can Serilog be used in a .NET application?
Log provider for MEL
A Logging framework
Library to store data to File
A Frontend UI module
4.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
What is the purpose of an enricher in Serilog?
Updating properties from logevent
Removing properties from logevent
Adding properties to logevent
Deleting properties from logevent
5.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
What is the purpose of sinks?
Nothing
Enrich logevent with new properties
Writing log events to storage in various format
Filter logevent before writing to storage
6.
MULTIPLE CHOICE QUESTION
20 sec • 3 pts
When do you want to config a sublogger in Serilog?
WriteTo.Logger()
Log properties sent to another sinks should differ
When you want to write to database
When you want to write to a custom sink
You should not config sublogger
7.
MULTIPLE CHOICE QUESTION
20 sec • 3 pts
When can LogEvent from Microsoft namespace get logged to Console?
level == Information
level >= Information
level >= Warning
level > Warning
8.
MULTIPLE CHOICE QUESTION
20 sec • 3 pts
.Filter.ByExcluding(le => Matching.FromSource("System")(le) && le.Level <= LogEventLevel.Information)
Can logevent with SourceContext = 'System.*' get logged with that filter?
Always
Never
Only when level > Information
Only when level <= Information
Similar Resources on Wayground
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade