Giter Club home page Giter Club logo

log4nettutorial's Introduction

Log4net Tutorial

This repository is the sample code developed in the log4net training video Application Logging in C#: The log4net tutorial. The commits in the repository have been tagged with versions that correspond to the sections of the video where that particular code was built. Below you will see what each section covers.

Sections Covered

v1.0 - Getting Started

In this section, we start from scratch and implement logging using log4net. There isn't any complicated usage. Think of this as a step up from a simple Hello World example.

v1.1 - .NET 4.5 Changes

This is a brief look at how the changes in .NET 4.5 allow us more options for automatically naming our logger instance based upon the file it was created in.

v1.2 - Appenders

This section is all about the appenders. Where can we write data to and how do we do it for each. The major appenders are covered and the minor ones are touched upon.

v1.3 - Filters

In this section we look at how to use a filter to get only the messages you are really interested in logging. We cover the various options for being as specific as we want about the messages we capture.

v1.4 - Log Patterns

This section is designed to show you what information you can capture using the standard options provided by log4net and how you can play around with those formats for even more flexibility.

v1.5 - Advanced Logging

In this last section, we look at how to extend the information we can capture by providing our own custom properties. First we look at a simple variable that gets set once and does not change. After that, we look at how to add a variable once and get it to change as the value in our application changes.

Resources

Note: To be informed when new training resources are coming and to participate in shaping what new training resources are provided by Tim, sign up for the training announcements newsletter at http://eepurl.com/btLrsH

log4nettutorial's People

Contributors

timcorey avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.