Skip to content

Commit

Permalink
Merge pull request #4 from guibranco/develop
Browse files Browse the repository at this point in the history
Add LogMessage class
  • Loading branch information
guibranco authored Sep 20, 2019
2 parents 39b7c89 + 0afaa8c commit ffde62d
Showing 1 changed file with 127 additions and 1 deletion.
128 changes: 127 additions & 1 deletion Src/CrispyWaffle/Log/LogMessage.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,132 @@
namespace CrispyWaffle.Log
{
internal class LogMessage
using Serialization;
using System;

/// <summary>
/// The log message class.
/// </summary>
[Serializer(SerializerFormat.JSON)]
public sealed class LogMessage
{
/// <summary>
/// Gets or sets the identifier.
/// </summary>
/// <value>
/// The identifier.
/// </value>
public string Id { get; set; }

/// <summary>
/// Gets or sets the level.
/// </summary>
/// <value>
/// The level.
/// </value>
public string Level { get; set; }

/// <summary>
/// Gets or sets the category.
/// </summary>
/// <value>
/// The category.
/// </value>
public string Category { get; set; }

/// <summary>
/// Gets or sets the process identifier.
/// </summary>
/// <value>
/// The process identifier.
/// </value>
public int ProcessId { get; set; }

/// <summary>
/// Gets or sets the thread identifier.
/// </summary>
/// <value>
/// The thread identifier.
/// </value>
public int ThreadId { get; set; }

/// <summary>
/// Gets or sets the name of the thread.
/// </summary>
/// <value>
/// The name of the thread.
/// </value>
public string ThreadName { get; set; }

/// <summary>
/// Gets or sets the cpu usage.
/// </summary>
/// <value>
/// The cpu usage.
/// </value>
public int CPUUsage { get; set; }

/// <summary>
/// Gets or sets the hostname.
/// </summary>
/// <value>
/// The hostname.
/// </value>
public string Hostname { get; set; }

/// <summary>
/// Gets or sets the ip address.
/// </summary>
/// <value>
/// The ip address.
/// </value>
public string IpAddress { get; set; }

/// <summary>
/// Gets or sets the ip address remote.
/// </summary>
/// <value>
/// The ip address remote.
/// </value>
public string IpAddressRemote { get; set; }

/// <summary>
/// Gets or sets the user agent.
/// </summary>
/// <value>
/// The user agent.
/// </value>
public string UserAgent { get; set; }

/// <summary>
/// Gets or sets the date.
/// </summary>
/// <value>
/// The date.
/// </value>
public DateTime Date { get; set; }

/// <summary>
/// Gets or sets the message.
/// </summary>
/// <value>
/// The message.
/// </value>
public string Message { get; set; }

/// <summary>
/// Gets or sets the identifier.
/// </summary>
/// <value>
/// The identifier.
/// </value>
public string MessageIdentifier { get; set; }

/// <summary>
/// Gets or sets the operation.
/// </summary>
/// <value>
/// The operation.
/// </value>
public string Operation { get; set; }
}
}

0 comments on commit ffde62d

Please sign in to comment.