/// <summary> /// Initializes a new instance of the <see cref="SerializableLogMessage"/> class using the given parameters to set its properties. /// </summary> /// <param name="module">The module name.</param> /// <param name="type">The type.</param> /// <param name="text">The text.</param> /// <param name="exceptionInfo">The exception information. This parameter can be null.</param> public SerializableLogMessage(string module, LogMessageType type, string text, ExceptionInfo exceptionInfo = null) { if (module == null) throw new ArgumentNullException("module"); if (text == null) throw new ArgumentNullException("text"); Module = module; Type = type; Text = text; ExceptionInfo = exceptionInfo; }
/// <summary> /// Initializes a new instance of the <see cref="SerializableLogMessage"/> class using the given parameters to set its properties. /// </summary> /// <param name="module">The module name.</param> /// <param name="type">The type.</param> /// <param name="text">The text.</param> /// <param name="exceptionInfo">The exception information. This parameter can be null.</param> public SerializableLogMessage([NotNull] string module, LogMessageType type, [NotNull] string text, ExceptionInfo exceptionInfo = null) { if (module == null) { throw new ArgumentNullException(nameof(module)); } if (text == null) { throw new ArgumentNullException(nameof(text)); } Module = module; Type = type; Text = text; ExceptionInfo = exceptionInfo; }
public AssetSerializableLogMessage(Guid assetId, UFile assetUrl, LogMessageType type, string text, ExceptionInfo exceptionInfo = null) : base("", type, text, exceptionInfo) { AssetId = assetId; AssetUrl = assetUrl; }