Logging in .NET

Logging in .NET

Professional Development

8 Qs

quiz-placeholder

Similar activities

DollarCatchers

DollarCatchers

Professional Development

10 Qs

7W GATE D5

7W GATE D5

Professional Development

13 Qs

DBC 05

DBC 05

Professional Development

13 Qs

Quiz 05 - SPP & BLDG LAWS

Quiz 05 - SPP & BLDG LAWS

Professional Development

10 Qs

Understanding Cavity Wall Lintels

Understanding Cavity Wall Lintels

Professional Development

8 Qs

Architecture

Architecture

6th Grade - Professional Development

11 Qs

ICD101 Session 1

ICD101 Session 1

Professional Development

10 Qs

Evaluación diagnóstica Procesos BIM

Evaluación diagnóstica Procesos BIM

University - Professional Development

10 Qs

Logging in .NET

Logging in .NET

Assessment

Quiz

Architecture

Professional Development

Hard

Created by

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

Media Image

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