/// <summary> /// Initializes a new instance of the <see cref="LoggerMessage" /> class. /// </summary> /// <param name="loggerLevel">The logger level.</param> /// <param name="message">The message.</param> /// <param name="error">The error.</param> public LoggerMessage(LoggerLevel loggerLevel, string message, string category, ExceptionInfo error) { Category = category; LoggerLevel = loggerLevel; Message = message; Error = error; DateTime = DateTime.Now; customData = new Dictionary <string, string>(); }
/// <summary> /// Initializes a new instance of the <see cref="LoggerMessage" /> class. /// </summary> /// <param name="loggerLevel">The logger level.</param> /// <param name="message">The message.</param> public LoggerMessage(LoggerLevel loggerLevel, string message, ExceptionInfo error) : this(loggerLevel, message, DefaultCategory, null) { }