Giter Site home page Giter Site logo

dlogger's Introduction

DLogger

Derrick Kyle Ward's Asynchronous Logging Framework.

  • Purpose:

    • Allows user to asynchronously Log Messages of different severity, from different threads, to a single log file.
  • Why was this developed:

    • This was my first stab at trying to develop a useful framework/library that can be used for any application.
  • Challenges:

    • Keeping the order in which the log messages are written to the file the same as the queueing order.
    • Making sure the thread working on the queue of messages does not remain the active thread in the application or on the system.
    • Providing an intuitive way for the user to halt the logging system and shut it down.
      • Using the method name C# developers would look for: Dispose()
      • This will ensure the logging system will take no more messages and the last queue messaged is written to the file before returning to the caller.
  • Simple How To:

//Create an instance of the logger.
IDLogger logger = new DLogger("Filename you want");

//Tell logger to log a info message, from the 'Program' Class Type
logger.Info("Info Severity Message", typeof(Program));

//Tell logger to log a warning message
logger.Warning("Warning Severity Message");

//Tell logger to log an error message
logger.Error("Error Severity Message");

//Tell Logger to stop listening for new messages and to shutdown
logger.Dispose();

dlogger's People

Contributors

dward330 avatar

Stargazers

 avatar

Watchers

 avatar  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.