/// <summary> /// Logs a message. /// </summary> /// <param name="message">The message to log.</param> protected void Log(IDaLogMessage message) { var logManager = DaLogManagerFactory.CreateLogManager(); if (logManager != null) { logManager.Write(message); } }
/// <summary> /// Logs a message. /// </summary> /// <param name="message">The message to log.</param> protected void Log(string message) { var logManager = DaLogManagerFactory.CreateLogManager(); if (logManager != null) { var msg = new DaLogMessage() { Text = message, Priority = 1, Date = DateTime.UtcNow, }; logManager.Write(msg); } }