Created
June 24, 2011 09:18
-
-
Save aidanmorgan/1044479 to your computer and use it in GitHub Desktop.
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
public class LogEntry | |
{ | |
public Guid Id { get; set; } | |
public string Logger { get; set; } | |
public string Message { get; set; } | |
public DateTime Created { get; set; } | |
public static LogEntry Create(string Logger, string Message) | |
{ | |
LogEntry le = new LogEntry() | |
{ | |
Id = Guid.NewGuid(), | |
Created = DateTime.Now, | |
Logger = Logger, | |
Message = Message | |
}; | |
return le; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment