namespace Wayne.Lib.Log
{
///
/// A set of parameters to control how to log an LogEntry as a string line.
///
public class LogTextWritingParameters
{
#region Construction
internal LogTextWritingParameters(string dateTimeFormat, EntityLogKind entityLogKind, bool suppressCategory, bool keepFileOpened)
{
DateTimeFormat = dateTimeFormat;
EntityLogKind = entityLogKind;
SuppressCategory = suppressCategory;
KeepFileOpened = keepFileOpened;
}
#endregion
#region Properties
///
/// The format of the DateTime.
///
public string DateTimeFormat { get; private set; }
///
/// The details of the identifiable entity.
///
public EntityLogKind EntityLogKind { get; private set; }
///
/// Should the category be suppressed or not.
///
public bool SuppressCategory { get; private set; }
///
/// Should the file be kept open or closed after each write.
///
public bool KeepFileOpened { get; private set; }
#endregion
}
}