private static void LogCore(LogItemType type, string category, string message, Exception ex) { if (null == category) { category = LogItemCategory.Default; } Contract.ThrowIfNullOrEmpty(message); Log(new LogItem(type, category, message, ex), ex); }