/// <summary> /// Initializes a new instance of the <see cref="LogConfiguration" /> class, /// using the specified folder and file name formatting. /// </summary> /// <param name="levels"></param> /// <param name="formatter"></param> /// <param name="logFileFolder"> /// The path of the directory in which the log will /// reside, without any trailing backslash. /// </param> /// <param name="fileNameFormat"> /// A string that indicates the /// formatting of the filename. /// </param> /// <param name="args"></param> /// <returns> /// The <see cref="T:ServiceSentry.Extensibility.Logging.LogConfiguration" />. /// </returns> public static LogConfiguration Create(EnabledLevels levels, FileNameFormatter formatter, string logFileFolder, string fileNameFormat, params FileNameFormattingOption[] args) { return new LogConfiguration(levels, formatter, logFileFolder, fileNameFormat, args); }
private void BeforeDeserialization(StreamingContext context) { _formatter = FileNameFormatter.Default; }
/// <summary> /// Initializes a new instance of the <see cref="LogConfiguration" /> class, /// using the specified folder and file name formatting. /// </summary> /// <param name="levels"></param> /// <param name="formatter"></param> /// <param name="logFileFolder"> /// The path of the directory in which the log will /// reside, without any trailing backslash. /// </param> /// <param name="fileNameFormat"> /// A string that indicates the /// formatting of the filename. /// </param> /// <param name="args"></param> /// <returns> /// The <see cref="T:ServiceSentry.Extensibility.Logging.LogConfiguration" />. /// </returns> internal LogConfiguration(EnabledLevels levels, FileNameFormatter formatter, string logFileFolder, string fileNameFormat, params FileNameFormattingOption[] args) { _levels = levels; _formatter = formatter; _logFileFolder = logFileFolder; _fileNameFormat = fileNameFormat; FormattingOptions = args; }