
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
10 questions
Fire Safety 1

Quiz
•
Professional Development
13 questions
11.Leveling Instruments & 8.Elevations

Quiz
•
Professional Development
10 questions
Progress Quiz

Quiz
•
Professional Development
6 questions
COnocimientos sobre BIM

Quiz
•
Professional Development
6 questions
Anti Money Laundering (AML)

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade