Skip to content

Instantly share code, notes, and snippets.

@aidanmorgan
Created June 24, 2011 09:18
Show Gist options
  • Save aidanmorgan/1044479 to your computer and use it in GitHub Desktop.
Save aidanmorgan/1044479 to your computer and use it in GitHub Desktop.
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