Loring.Logging 1.0.55

Loring Logging

Loring Smart Roast

Loring Smart Roast

A logging assembly to be used for all Loring Smart Roast products.
Report bug ยท Request feature

Table of contents

Description

Logging is a critical aspect of modern software development. It provides a way to record the activities and events happening within a software application, which can be invaluable for debugging and troubleshooting issues. Logs can provide detailed context about what the application was doing at the time of an error, making it easier to identify and fix the problem. Additionally, logging can be used for monitoring application performance, tracking user behavior, and even for regulatory compliance in certain industries. In a distributed system, where an application might be spread across multiple servers or services, logging can be the only way to get a holistic view of the system's behavior. Therefore, effective logging practices are an essential part of maintaining the reliability, performance, and security of software applications.

This repository contains a logging assembly that can be used for all Loring Smart Roast products. The assembly provides a simple and flexible logging framework that can be easily integrated into any .NET application and .NET Framework applicaitons. It supports multiple log levels, log message formatting, and log message filtering. The assembly also includes a set of built-in log appenders that can write log messages to various destinations, such as the console, a file, or a database. For critical errors the library can also support appending critical logs to Raygun's error tracking service. The assembly is designed to be extensible, so developers can easily create custom log appenders or log message formatters to meet their specific requirements.

Supported Log Levels

The following log levels are supported by the assembly:

  • Debug: Used for detailed debugging information.
  • Verbose: Verbose logging is detailed recording of all system activities.
  • Information: Information level debugging logs useful events for general application operations.
  • Warning: Warning level logging records events that could potentially cause issues.
  • Error: Error level logging captures events that prevent normal program execution.
  • Fatal: Fatal level logging records events causing the application to crash

Quick start .NET Framework

To get started with the Loring Logging assembly, follow these steps:

  1. Install the Loring.Logging package from nuget.tipwinns.dev:
Install-Package Loring.Logging
  1. Add the following code to your application to configure the logging framework:
using LoringLogging;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
using Newtonsoft.Json;
...
ILoringLogger _llog;
...

 var llc = new LoringLoggingConfig()
{
    EnableDebug = true,
    EnableConsole = true,
    Level = LSRLevel.Debug
};

//Create a json string from the configuration object
var jsonString = JsonConvert.SerializeObject(new {LoringLoggingConfig = llc });

// Convert the JSON string to a MemoryStream
var jsonStream = new MemoryStream(Encoding.ASCII.GetBytes(jsonString));

 // Add the JSON stream to the configuration builder
cfgBulder.AddJsonStream(jsonStream);

// Build the configuration object
var config = cfgBulder.Build();

// Bind the configuration objects to IOptions

var logobject = new LoringLoggingConfig();
config.GetSection(nameof(LoringLoggingConfig)).Bind(logobject);

var logoption = Options.Create(logobject);

var services = new ServiceCollection();

services.AddLoringLogger(config);
var provider = services.BuildServiceProvider();
services.BuildServiceProvider();

_llog = provider.GetService<ILoringLogger>();

Status

Under private development for internal use only.

Dependencies

  • Serilog
  • Serilog.Sinks.Console
  • Serilog.Sinks.File
  • Serilog.Sinks.RollingFile
  • Microsoft.Extensions.Configuration
  • Microsoft.Extensions.Configuration.Json
  • Microsoft.Extensions.DependencyInjection

Code and documentation copyright 2025-2025 the Loring Smart Roast.

Showing the top 20 packages that depend on Loring.Logging.

Packages Downloads
LSRBeijeriXCFLib
Package Description
93
LSRBeijeriXCFLib
Package Description
44
Loring.LicenseManager
License Manager for Loring Software Prodcuts
43
roaster_core
A proprietary roaster core library for lorings products.
36
LSRBeijeriXCFLib
Package Description
28
roaster_core
A proprietary roaster core library for lorings products.
26
Loring.LicenseManager
Package Description
25
LSRBeijeriXCFLib
Package Description
25
LMControlsWindows
License Manager WinForms Graphical Controls for Loring Software Prodcuts
24
Loring.LicenseManager
License Manager for Loring Software Prodcuts
24
roaster_core
A proprietary roaster core library for lorings products.
20
roaster_core
A proprietary roaster core library for lorings products.
19
roaster_core
A proprietary roaster core library for lorings products.
14
roaster_core
A proprietary roaster core library for lorings products.
12
roaster_core
A proprietary roaster core library for lorings products.
10
LMControlsWindows
License Manager WinForms Graphical Controls for Loring Software Prodcuts
9
roaster_core
A proprietary roaster core library for lorings products.
9
LSRBeijeriXLib
Package Description
8

.NET Framework 3.5

.NET 8.0

.NET Standard 2.0

.NET Framework 4.8.1

Version Downloads Last updated
1.0.60 102 12/27/2024
1.0.58 51 11/26/2024
1.0.57 142 08/30/2024
1.0.56 5 08/30/2024
1.0.55 6 08/30/2024
1.0.53 5 08/29/2024
1.0.52 9 08/29/2024
1.0.50 8 08/26/2024
1.0.49 7 08/22/2024
1.0.48 5 08/21/2024
1.0.47 2 08/21/2024
1.0.46 6 08/19/2024
1.0.39 23 05/05/2024
1.0.38 5 05/05/2024
1.0.37 22 04/30/2024
1.0.36 4 04/30/2024
1.0.31 6 04/30/2024