Exemplo n.º 1
0
 private void log(string msg, string group, LogViewType ltype = LogViewType.Both)
 {
     if (_log == null)
     {
         return;
     }
     _log(msg, group, ltype);
 }
Exemplo n.º 2
0
 private static void log(string msg, string group, LogViewType showtype = LogViewType.Both)
 {
     if (_log == null)
     {
         return;
     }
     _log(msg, group, showtype);
 }
Exemplo n.º 3
0
        public void Write(string msg, string group = "normal", LogViewType type = LogViewType.Both)
        {
            switch (type)
            {
            case LogViewType.Both:
                msgCenter.Push(msg, group);
                clsSetting.loger.Error(string.Format("[{0}] {1}", group, msg));
                break;

            case LogViewType.OnlyForm:
                msgCenter.Push(msg, group);
                break;

            case LogViewType.OnlyFile:
                clsSetting.loger.Error(string.Format("[{0}] {1}", group, msg));
                break;
            }
        }
Exemplo n.º 4
0
 private void log(string s, string group, LogViewType ltype = LogViewType.Both)
 {
     FrmMain.logOpt.Write(s, LogType.ROBOT_STACK);
 }