public void WriteException(string cExpression, Exception ex) { if (LogMvc.Writer != null) { LogMvc.WriteException(cExpression, ex); } }
public void Write(string text, params object[] args) { var writer = LogMvc.Writer == null ? null : LogMvc.Writer(); if (writer != null) { writer.Write(String.Format(text, args)); writer.Close(); } }