Search Header Logo

Logging in .NET

Authored by Khiem DN

Architecture

Professional Development

Used 4+ times

Logging in .NET
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?