Loring.Logging 1.0.50
Loring Logging
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:
- Install the Loring.Logging package from nuget.tipwinns.dev:
Install-Package Loring.Logging
- 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
Copyright and license
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
- log4net.35 (>= 1.0.50)
- Newtonsoft.Json (>= 13.0.3)
.NET 8.0
- Serilog.Sinks.Console (>= 6.0.0)
- Serilog.Sinks.Debug (>= 3.0.0)
- Serilog.Sinks.File (>= 6.0.0)
- Serilog.Sinks.InMemory (>= 0.11.0)
- Serilog.Sinks.Raygun (>= 7.5.0)
- System.Text.Json (>= 8.0.4)
- Serilog.Exceptions (>= 8.4.0)
- Serilog (>= 4.0.1)
- Serilog.Expressions (>= 5.0.0)
- Mindscape.Raygun4Net.AspNetCore (>= 11.0.3)
- Newtonsoft.Json (>= 13.0.3)
- Microsoft.Extensions.Configuration (>= 8.0.0)
- Microsoft.Extensions.DependencyInjection (>= 8.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.1)
- Microsoft.Extensions.Options (>= 8.0.2)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
.NET Standard 2.0
- Microsoft.Extensions.Configuration (>= 8.0.0)
- Microsoft.Extensions.DependencyInjection (>= 8.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.1)
- Microsoft.Extensions.Options (>= 8.0.2)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
- Newtonsoft.Json (>= 13.0.3)
- Serilog (>= 4.0.1)
- Serilog.Exceptions (>= 8.4.0)
- Serilog.Expressions (>= 5.0.0)
- Serilog.Sinks.Console (>= 6.0.0)
- Serilog.Sinks.Debug (>= 3.0.0)
- Serilog.Sinks.File (>= 6.0.0)
- Serilog.Sinks.InMemory (>= 0.11.0)
- Serilog.Sinks.Raygun (>= 7.5.0)
- System.Text.Json (>= 8.0.4)
- Mindscape.Raygun4Net.AspNetCore (>= 11.0.3)
.NET Framework 4.8.1
- Microsoft.Extensions.Configuration (>= 8.0.0)
- Microsoft.Extensions.DependencyInjection (>= 8.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.1)
- Microsoft.Extensions.Options (>= 8.0.2)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
- Mindscape.Raygun4Net.AspNetCore (>= 11.0.3)
- Newtonsoft.Json (>= 13.0.3)
- Serilog (>= 4.0.1)
- Serilog.Expressions (>= 5.0.0)
- Serilog.Exceptions (>= 8.4.0)
- Serilog.Sinks.Debug (>= 3.0.0)
- Serilog.Sinks.File (>= 6.0.0)
- Serilog.Sinks.InMemory (>= 0.11.0)
- Serilog.Sinks.Raygun (>= 7.5.0)
- System.Text.Json (>= 8.0.4)
- Serilog.Sinks.Console (>= 6.0.0)
| 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 |