-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from guibranco/develop
Add LogMessage class
- Loading branch information
Showing
1 changed file
with
127 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; } | ||
} | ||
} |