Exemple #1
0
        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);
        }
Exemple #2
0
 public void LogIt(string inMessage_, LOG_STATE inState_, Exception inException_)
 {
     //TODO
 }
Exemple #3
0
 public void LogIt(string inMessage_, LOG_STATE inState_)
 {
     //TODO
 }