public void LogAction(LOG_STATE state, string action, string ip = "-", string href = "") { string stateStr = ""; switch (state) { case LOG_STATE.INFO: stateStr = "[INFO]"; break; case LOG_STATE.WARNING: stateStr = "[WARNING]"; break; case LOG_STATE.ERROR: stateStr = "[ERROR]"; break; } ListViewItem itm = new ListViewItem(new string[] { stateStr, DateTime.Now.ToString(" dd.MM.yyyy - HH:mm:ss"), action, ip }); if (href != "") { itm.Tag = href; } Invoker.LogEntry(listView1, itm); }
public void LogIt(string inMessage_, LOG_STATE inState_, Exception inException_) { //TODO }
public void LogIt(string inMessage_, LOG_STATE inState_) { //TODO }