Esempio n. 1
0
        private void write_log(JournalItem.EventType eventType)
        {
            var cureitem = new JournalItem(DateTime.Now, eventType, ProcessExtensions.GetCurrentUsername() ?? "", Environment.MachineName);

            Journal.Journal.WriteLog(cureitem, journalForlder);
        }
Esempio n. 2
0
        private void write_log(string message)
        {
            var res = DateTime.Now.ToLongTimeString() + " " + message + " CurrentUser:"******"");

            res += "\t&\t" + hash(res);
            eventLog1.WriteEntry(res);
        }