예제 #1
0
        public void Log(EEthernetLogItem item, string str)
        {
            switch (Logging)
            {
            case EEthernetLogging.None:
                break;

            case EEthernetLogging.Event:
                if ((item != EEthernetLogItem.Send) && (item != EEthernetLogItem.Receive))
                {
                    logger.Log((int)item, str);
                }
                break;

            case EEthernetLogging.All:
                logger.Log((int)item, str);
                break;
            }
        }
예제 #2
0
        public void Log(EEthernetLogItem item, string fmt, params object[] args)
        {
            string str = string.Format(fmt, args);

            Log(item, str);
        }