public LogNoteTypeModel(LogNoteType model) : base(model) { ColourCode = model.ColourCode; IconClass = model.IconClass; }
public void Log(string message, LogNoteType type = LogNoteType.Message, string origin = "") { Logged(new LogNote(String.IsNullOrWhiteSpace(origin) ? message : $"{origin}> {message}", type)); }
public LogNote(string message, LogNoteType noteType = LogNoteType.Message, bool captureCreatedDateTime = true) { NoteType = noteType; Created = DateTime.Now; Message = captureCreatedDateTime ? Created.ToString("g") + " " + message : message; }