Esempio n. 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;
            }
        }
Esempio n. 2
0
        public void Log(EEthernetLogItem item, string fmt, params object[] args)
        {
            string str = string.Format(fmt, args);

            Log(item, str);
        }