Structured Logging

We are excited to announce the launch of our structured logging service.

This allows you to log and store any structured data, not just errors and exceptions. This can be as simple as a name-value pair, or a full object of variables.

ErrLog - Structured Logging

Simple JSON Data Structure

Logs are sent to ErrLog using JSON. So long as it's structured correctly, and pre-defined in our Logging database, we'll accept it, sanitize it and store it.

Example Logging via the Nuget Package

Structured logs are sent via our C#/.Net NUGET package by using the code below.


    ErrLog.settings.apikey = "abcdef1234-1234-abcd-1234-123456789012";
    string json = @"{ ""name"":""hello world"", ""value"":""12345""} ";
    ErrLog.logdata.log(json);
    

Or you can serialize your object using your favourite JSON libary (such as JSON.Net).

Structured Logging Groups

You can now created multiple Structured Logging "Groups", that are collections of data. These can have a variety of fields and field types, with more being added over time.

ErrLog - Structured Logging JSON Example

How long is data kept for?

Structured Logs are kept for the same period of time as your Errors and Exceptions - based on your selected plan.



Recent Posts

Jan, 2025
Dec, 2021
Nov, 2021
Oct, 2021
Sep, 2021
Aug, 2021
Jun, 2021
Jan, 2021
Mar, 2020
Feb, 2020
Jun, 2018
May, 2018
Feb, 2018
Jan, 2018
Dec, 2017
Nov, 2017
Oct, 2017
Sep, 2017

 

Discuss this article