SlideShare a Scribd company logo
Use of Nlog library in C#
Name Muhammad Zahid Ayub
Roll #: Bcsf15a009
Punjab University College of information Technology Lahore
What is Nlog ?
 Nlog is an open source log platform. Through this platform, we
can log an activity of an application. This makes an application's
code easy to handle. Nlog provides a cross platform support.
 It is extremely powerful, and very easy to setup.
 With NLog you can easily write debug info to:
– files
– event log
– database
– network
– email
– command line console
– and many other providers
Multiple Choise Question about Nlog libraryin c#
(1)- If youwouldlike toretrieve aparticularlogger, thenwhich methodof the LogManagerclassyou
choose ?
(a) Loggerlogger= LogManager.GetLogger("SpecifyTheClassNameHere");
(b) Loggerlogger= LogManager.Get("SpecifyTheClassNameHere");
(c) None
Q2: whatdoesFallBackGroupinwrapper
(A) Fallback-on-errors (B) fullback-on-information
( c) fallback-on-exception (D) Both A,B
Q3: NLogsupportsspecial kindsof targetswhichdonot doany loggingbythemselves,butwhich
modifythe behaviorof otherloggers.Those targetsare called ??
(a)Wrappers (b) logs (c) classes
Q4: whatis trace ?
(a)verydetailedlogs (b)verydetailedlogs (c) nonof these
Q5: One can alsospecifyanexplicitname byusingNLog.LogManager. ??
(a) GetLogger("MyLogger"). (b) GetLogger(MyLoggr).
(c)none
Q6: One thingthat mayseemstrange isthat if NLog itself hasanexception,the loggingwill ??
(a) fail passively (b) pass passively
(b) nothing
Q 7: whatthingswe shouldinstall if youwatntouse nloglibrary
(a) nlog (b)nlog.config
(b) Both
Q8: Howto Log ASP.NETRequestDetails
(a) The NLog extensionspackage NLog.WebaddssupportforloggingASP.NETrequestfieldstoyour
logs.
(b) The NLog extensionspackage NLog.configaddssupportforloggingASP.NETrequestfieldsto
your logs.
(c) None
Q9: How to Correlate LogMessagesby WebRequestTransaction
(a) ${activityid}
(b) ID
(c) Both maybe
Q10: Using GDC, MDC, and MDLC isvirtuallyall the ??
(a) Same
(b) Different
(c) shareable Properties
Q11: NLog can support_______targets whichrepresentwhere yourlog_______is to be writtento.
(a) Multiple,error
(b) Error,multiple
(c) Multiple,data
Q12: You Can Make Your OwnCustomNLogTargets
(a) True (b) false
Q13 : Use _____ to SuppressCertainLoggingStatements
(a) Filters
(b) Log
(c) Data
Q 14 : Alwaysdefine aLoggerobjectasstatic
(A) true
(B) FALSE
(C) incomplete information
Q15: what are the targets???
(a) Targetsare howyou directwhere youwantyourlogs sent
(b) Targetsare howyou directwhere youwantyourlogs receive
(c) Incomplete data
Q16 : howcan we install nloglibraryinourproject??
(a) nuGetpackage
(b) Get package
(c) Alreadyinstalled
Q17 : Trying toquerylogsin SQL isvery_____if youlog anyreal volume of dataif you don’thave full-
textindexing.
(a) Fast
(b) Slow
(c) Error occurs

More Related Content

PDF
Graphite, an introduction
PDF
공영주차장 실시간 예측
PDF
Collecting metrics with Graphite and StatsD
PPTX
Monitoring in a scalable world
PPTX
Documenting an API written in Django Rest Framework
PDF
The Dark Side Of Go -- Go runtime related problems in TiDB in production
PDF
Software maintenance PyConPL 2016
PDF
Python gis
Graphite, an introduction
공영주차장 실시간 예측
Collecting metrics with Graphite and StatsD
Monitoring in a scalable world
Documenting an API written in Django Rest Framework
The Dark Side Of Go -- Go runtime related problems in TiDB in production
Software maintenance PyConPL 2016
Python gis

What's hot (20)

DOCX
Bsdtw17: mariusz zaborski: case studies of sandboxing base system with capsicum
PDF
Statsd introduction
PDF
Building an analytics workflow using Apache Airflow
PDF
Cloud TiDB deep dive
PDF
WebCamp 2016: PHP.Алексей Петров.PHP at Scale: System Architect Toolbox
PDF
Apache Flink Training Workshop @ HadoopCon2016 - #2 DataSet API Hands-On
PDF
A Quick Intro to ReactiveX
PDF
Golang in TiDB (GopherChina 2017)
PDF
sysprog2 Part2
PPTX
Micro-metrics to forecast performance tsunamis
PDF
Scalable real-time processing techniques
PPTX
Paper_An Efficient Garbage Collection in Java Virtual Machine via Swap I/O O...
PDF
Luigi future
PDF
SqliteToRealm
PDF
Meet the Experts: Visualize Your Time-Stamped Data Using the React-Based Gira...
PPTX
JavaScript code academy - introduction
PPTX
Computer Vision, Deep Learning, OpenCV
PDF
Introduction to influx db
PPTX
7 jvm-arguments-v1
Bsdtw17: mariusz zaborski: case studies of sandboxing base system with capsicum
Statsd introduction
Building an analytics workflow using Apache Airflow
Cloud TiDB deep dive
WebCamp 2016: PHP.Алексей Петров.PHP at Scale: System Architect Toolbox
Apache Flink Training Workshop @ HadoopCon2016 - #2 DataSet API Hands-On
A Quick Intro to ReactiveX
Golang in TiDB (GopherChina 2017)
sysprog2 Part2
Micro-metrics to forecast performance tsunamis
Scalable real-time processing techniques
Paper_An Efficient Garbage Collection in Java Virtual Machine via Swap I/O O...
Luigi future
SqliteToRealm
Meet the Experts: Visualize Your Time-Stamped Data Using the React-Based Gira...
JavaScript code academy - introduction
Computer Vision, Deep Learning, OpenCV
Introduction to influx db
7 jvm-arguments-v1
Ad

Similar to Use of Nlog library in c# (20)

PDF
Kubecon seattle 2018 workshop slides
PDF
Training Week: GraphQL 2022
PDF
Implementing OpenAPI and GraphQL services with gRPC
PPS
Groovy & Grails
PDF
apidays LIVE Helsinki - Implementing OpenAPI and GraphQL Services with gRPC b...
PDF
Training Series: Build APIs with Neo4j GraphQL Library
PDF
Building Fullstack Serverless GraphQL APIs In The Cloud
PDF
Training Week: Build APIs with Neo4j GraphQL Library
PPTX
Kotlin REST & GraphQL API
PDF
Full Stack Graph in the Cloud
PDF
The Apollo and GraphQL Stack
PDF
Sashko Stubailo - The GraphQL and Apollo Stack: connecting everything together
ODP
Groovy and Grails intro
PDF
web2py:Web development like a boss
PPTX
OWASP ZAP Workshop for QA Testers
PDF
OSA Con 2022 - Switching Jaeger Distributed Tracing to ClickHouse to Enable A...
PDF
Java 23 and Beyond - A Roadmap Of Innovations
PPTX
Java 7 - New Features - by Mihail Stoynov and Svetlin Nakov
PPTX
Deep dive into LangChain integration with Neo4j.pptx
PPTX
React inter3
Kubecon seattle 2018 workshop slides
Training Week: GraphQL 2022
Implementing OpenAPI and GraphQL services with gRPC
Groovy & Grails
apidays LIVE Helsinki - Implementing OpenAPI and GraphQL Services with gRPC b...
Training Series: Build APIs with Neo4j GraphQL Library
Building Fullstack Serverless GraphQL APIs In The Cloud
Training Week: Build APIs with Neo4j GraphQL Library
Kotlin REST & GraphQL API
Full Stack Graph in the Cloud
The Apollo and GraphQL Stack
Sashko Stubailo - The GraphQL and Apollo Stack: connecting everything together
Groovy and Grails intro
web2py:Web development like a boss
OWASP ZAP Workshop for QA Testers
OSA Con 2022 - Switching Jaeger Distributed Tracing to ClickHouse to Enable A...
Java 23 and Beyond - A Roadmap Of Innovations
Java 7 - New Features - by Mihail Stoynov and Svetlin Nakov
Deep dive into LangChain integration with Neo4j.pptx
React inter3
Ad

Recently uploaded (20)

PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
cuic standard and advanced reporting.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Encapsulation theory and applications.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
KodekX | Application Modernization Development
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPT
Teaching material agriculture food technology
PDF
Empathic Computing: Creating Shared Understanding
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
MYSQL Presentation for SQL database connectivity
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
MIND Revenue Release Quarter 2 2025 Press Release
20250228 LYD VKU AI Blended-Learning.pptx
cuic standard and advanced reporting.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Network Security Unit 5.pdf for BCA BBA.
Encapsulation theory and applications.pdf
Chapter 3 Spatial Domain Image Processing.pdf
KodekX | Application Modernization Development
Reach Out and Touch Someone: Haptics and Empathic Computing
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Advanced methodologies resolving dimensionality complications for autism neur...
Teaching material agriculture food technology
Empathic Computing: Creating Shared Understanding
Diabetes mellitus diagnosis method based random forest with bat algorithm
MYSQL Presentation for SQL database connectivity
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
The Rise and Fall of 3GPP – Time for a Sabbatical?

Use of Nlog library in c#

  • 1. Use of Nlog library in C# Name Muhammad Zahid Ayub Roll #: Bcsf15a009 Punjab University College of information Technology Lahore
  • 2. What is Nlog ?  Nlog is an open source log platform. Through this platform, we can log an activity of an application. This makes an application's code easy to handle. Nlog provides a cross platform support.  It is extremely powerful, and very easy to setup.  With NLog you can easily write debug info to: – files – event log – database – network – email – command line console – and many other providers Multiple Choise Question about Nlog libraryin c# (1)- If youwouldlike toretrieve aparticularlogger, thenwhich methodof the LogManagerclassyou choose ? (a) Loggerlogger= LogManager.GetLogger("SpecifyTheClassNameHere"); (b) Loggerlogger= LogManager.Get("SpecifyTheClassNameHere"); (c) None Q2: whatdoesFallBackGroupinwrapper (A) Fallback-on-errors (B) fullback-on-information ( c) fallback-on-exception (D) Both A,B Q3: NLogsupportsspecial kindsof targetswhichdonot doany loggingbythemselves,butwhich modifythe behaviorof otherloggers.Those targetsare called ??
  • 3. (a)Wrappers (b) logs (c) classes Q4: whatis trace ? (a)verydetailedlogs (b)verydetailedlogs (c) nonof these Q5: One can alsospecifyanexplicitname byusingNLog.LogManager. ?? (a) GetLogger("MyLogger"). (b) GetLogger(MyLoggr). (c)none Q6: One thingthat mayseemstrange isthat if NLog itself hasanexception,the loggingwill ?? (a) fail passively (b) pass passively (b) nothing Q 7: whatthingswe shouldinstall if youwatntouse nloglibrary (a) nlog (b)nlog.config (b) Both Q8: Howto Log ASP.NETRequestDetails (a) The NLog extensionspackage NLog.WebaddssupportforloggingASP.NETrequestfieldstoyour logs. (b) The NLog extensionspackage NLog.configaddssupportforloggingASP.NETrequestfieldsto your logs. (c) None Q9: How to Correlate LogMessagesby WebRequestTransaction (a) ${activityid} (b) ID (c) Both maybe Q10: Using GDC, MDC, and MDLC isvirtuallyall the ?? (a) Same (b) Different (c) shareable Properties Q11: NLog can support_______targets whichrepresentwhere yourlog_______is to be writtento. (a) Multiple,error (b) Error,multiple
  • 4. (c) Multiple,data Q12: You Can Make Your OwnCustomNLogTargets (a) True (b) false Q13 : Use _____ to SuppressCertainLoggingStatements (a) Filters (b) Log (c) Data Q 14 : Alwaysdefine aLoggerobjectasstatic (A) true (B) FALSE (C) incomplete information Q15: what are the targets??? (a) Targetsare howyou directwhere youwantyourlogs sent (b) Targetsare howyou directwhere youwantyourlogs receive (c) Incomplete data Q16 : howcan we install nloglibraryinourproject?? (a) nuGetpackage (b) Get package (c) Alreadyinstalled Q17 : Trying toquerylogsin SQL isvery_____if youlog anyreal volume of dataif you don’thave full- textindexing. (a) Fast (b) Slow (c) Error occurs