Skip to content

Instantly share code, notes, and snippets.

@aidanmorgan
Created June 24, 2011 09:18
Show Gist options
  • Save aidanmorgan/1044480 to your computer and use it in GitHub Desktop.
Save aidanmorgan/1044480 to your computer and use it in GitHub Desktop.
public class KeyedLogEntry : LogEntry
{
public string AdditionalKey { get; set; }
public static KeyedLogEntry Create(string Logger, string key, string Message)
{
KeyedLogEntry entry = new KeyedLogEntry()
{
AdditionalKey = key,
Created = DateTime.Now,
Id = Guid.NewGuid(),
Logger = Logger,
Message = Message
};
return entry;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment