public void Trace(TraceLevel level, string message, Exception ex) { Logger.Write(getLogLevel(level), ex == null ? message : $"{message}\n{ex.AsString()}"); }