private void write_log(JournalItem.EventType eventType) { var cureitem = new JournalItem(DateTime.Now, eventType, ProcessExtensions.GetCurrentUsername() ?? "", Environment.MachineName); Journal.Journal.WriteLog(cureitem, journalForlder); }
private void write_log(string message) { var res = DateTime.Now.ToLongTimeString() + " " + message + " CurrentUser:"******""); res += "\t&\t" + hash(res); eventLog1.WriteEntry(res); }