BclExtras.LogItem.LogItem C# (CSharp) Method

LogItem() public method

public LogItem ( LogItemType logType, string category, string summary, Exception exception ) : System
logType LogItemType
category string
summary string
exception System.Exception
return System
        public LogItem(LogItemType logType, string category, string summary, Exception exception)
        {
            Debug.Assert(!String.IsNullOrEmpty(summary));
            Debug.Assert(!String.IsNullOrEmpty(category));

            // Set the basic information
            m_logType = logType;
            m_message = !String.IsNullOrEmpty(summary) ? summary : String.Empty;
            m_category = !String.IsNullOrEmpty(category) ? category : String.Empty;

            m_exceptionInfo = CreateExceptionInfo(exception);
        }