Logging
Rapid7
https://insight.rapid7.com/login
This is used to log all the legacy systems events and activities. All new event logs go into Graylog
Graylog
Ignitions Graylog instance https://graylog4.webuildgreatsoftware.co.za/
Graylog documentation - https://docs.graylog.org/en/4.0/
usage of the GELF format
The Graylog Extended Log Format (GELF) is a log format that avoids the shortcomings of classic plain Syslog and is perfect for logging from your application layer. It comes with optional compression, chunking, and, most importantly, a clearly defined structure. The Input of GELF messages can be UDP, TCP, or HTTP. Additionally, a queue is possible.
.NET Core - LogzLoggerProvider nuget package - Ignition Feed.
-
Install-Package LogzLoggerProvider
-
Requires minimum .NET core 3.0
-
The logzloggerProvider package can be used to send log messages to graylog from any .NET core application.
- message types for microservices
- Service Started - Starting a process.
log.ServiceStarted(list:new { });
- Use at the start of a method/process. - Service Processing - Tracking of important information within a process.
log.ServiceProcessing("A message for the current processing going on",list:new { });
Use anywhere within a method/process to highlight an important event or point in the flow has been reached. - Service Finished Success - Process completed with success.
log.ServiceFinishedSuccess(list:new { });
Use at the end of a process to indicate success. - Service Finished Error - Process failed.
log.ServiceFinishedError("Error Message",list:new { });
Use at any point if a process has failed to complete successfuly. - Service Faulted
log.ServiceFaulted(Exception,list:new { });
Use in the Catch section of a try/Catch flow to log the Exception message.
- Service Started - Starting a process.
- message types for microservices