Git Product home page Git Product logo

nulog's People

Contributors

ipointer-certifid avatar ipointeregov avatar ivan-pointer-sp avatar ivanpointer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

nulog's Issues

Configuration Shouldn't be Singleton (Exclusively)

The configuration needs to be tested in isolation. The fact that the configuration is a singleton is preventing this. A singleton configuration makes sense within the context of an application scope, as the default behavior.

The configuration needs to be made instantiable, and a singleton wrapper (factory?) which is used if no specific configuration is given. This may force a reorganization of the packages, according to the DIP, which, while being a really good thing, could prove to be a significant amount of effort.

Log message occasionally lost during shutdown of dispatcher

During the unit tests, a particularly "Stressful" test which loads up 1,000 messages into the dispatcher, then immediately shuts it down, will occasionally fail, as only 999 messages get flushed - one is lost.

I need to update the dispatcher to have a mechanism where once shutdown, it no longer accepts new messages, but makes sure that everything that's already queued up is dispatched out.

Thread Lock on NuLog.json File

The way that the NuLog.json file is read creates an exclusive lock on the file. Update to use File.ReadAllText, to let .Net handle reading the file in a more thread-safe manner.

Worker Thread Causes CPU Strain

A while loop containing a Thread.Yield, mixed with priority lowest and marked as a background thread. This needs to be swapped out with a Threading.Timer.

Thread Lock on Config

There is a thread lock happening around the config. There are multiple locks being used by the config, I suspect the deadlock is because of having multiple locks. I'll simplify the config to have only a single lock object to avoid the deadlock.

Invalid Default Format

Out of the box:

[3932] Failed to log the message "XXX" because an exception occured:
"NuLog.LoggingException: Failed to parse layout format
${DateTime:'{0:MM/dd/yyyy hh:mm:ss.fff}'} | ${Thread.ManagedThreadId:'{0,4}'} | ${Tags} | ${Message}${?Exception:'

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.