Multiformat Extendable .Net Logging

Multiformat Extendable .Net Logging

Released 5 years ago , Last update 5 years ago

JLogger is a simplified logging library that let's you log into XML and Text format or create your own logging solution implementing it's classes. Works on ASP.Net, WinForms or any other .Net project.

Simplified logging for .Net.

  • Log any text.
  • Contains support to Log exceptions and Inner exceptions.
  • Support to log to Text or XML Files.
  • Implement your own loggers by extending the abstract classes.
  • Complete code reference documentation.
  • Includes 2 sample projects. One for ASP.Net and one WinForms project

Pricing

14 day 14-day money-back guarantee

$9.99

Application License

  • Perpetual license

  • unlimited applications

  • Can distribute binary products only

  • Commercial use

  • 6 months support

Documentation

Usage of JLogger library is very simple. Here are a few example of how to use it:

Text Files

Logger logger = new TextLogger("txt"); // Define the file format.
logger.Log("This is a simple Message", LogLevel.Medium); // Log the Message

XML Files

Logger logger = new XmlLogger();
logger.Log("This is a simple Message", LogLevel.Low); // Log the Message

Several ways to log

Include additional Message

logger.Log("I´m a log message!", "And I´m an additional message!", LogLevel.High);

Creating a LogMessage

LogMessage message = new LogMessage("The Message", "The additional message", LogLevel.Medium);
logger.Log(message);

Log an exception with it's inner exceptions

try
{
    //....
}
catch(Exception ex)
{
    LogMessage message = LogMessage.CreateFromException(ex, true, LogLevel.High); // The true flag, tells to create a LogMessage recursively to include inner exceptions.
    logger.Log(message);
}

Setup / installation

Simply add a reference to the JLogger.dll file. You can start using it with it's default parameters or define them.

Common Setup (for Text and XML Logger)

Minimum Level

The default minimum level is Low. If a higher level is set, any lower level LogMessage will not me logged.

Logger logger = new TextLogger();
logger.MinimumLevel = LogLevel.Medium; // Log Messages with LogLevel.Low, won't be logged.

Logs Path

Logs path must be a physical path. If none is defined, the following will apply: For WinForms: Log Files will be created at the location of the executing assembly. For Web Projects: Log Files will be created at the root location of the Web Application.

Logger logger = new XmlLogger();
logger.LogsPath = "C:\MyProject\LOGS";

Text Logger

Extension

If no extension is defined .txt will be used.

TextLogger logger = new TextLogger("log"); // .log extension will be used
TextLogger logger = new TextLogger(); // .txt extension will be used

Example usage

Text Files

Logger logger = new TextLogger("txt"); // Define the file format.
logger.Log("This is a simple Message", LogLevel.Medium); // Log the Message

XML Files

Logger logger = new XmlLogger();
logger.Log("This is a simple Message", LogLevel.Low); // Log the Message

Several ways to log

Include additional Message

logger.Log("I´m a log message!", "And I´m an additional message!", LogLevel.High);

Creating a LogMessage

LogMessage message = new LogMessage("The Message", "The additional message", LogLevel.Medium);
logger.Log(message);

Log an exception with it's inner exceptions

try
{
    //....
}
catch(Exception ex)
{
    LogMessage message = LogMessage.CreateFromException(ex, true, LogLevel.High); // The true flag, tells to create a LogMessage recursively to include inner exceptions.
    logger.Log(message);
}
2 licenses, starting from From » $9.99 View Licenses

Get A Quote

What do you need?
  • Custom development
  • Integration
  • Customization / Reskinning
  • Consultation
When do you need it?
  • Soon
  • Next week
  • Next month
  • Anytime

Thanks for getting in touch!

Your quote details have been received and we'll get back to you soon.


Or enter your name and Email
No comments have been posted yet.