Class XmlLogAdapter
System.Object
  Westwind.Utilities.Logging.XmlLogAdapter
public class XmlLogAdapter : object, ILogAdapter

Class Members

MemberDescription

Constructor

Clear

Clears out all items from the XML log - in effect deletes the log file.

public sealed bool Clear()

public sealed bool Clear(int countToLeave)

public sealed bool Clear(decimal daysToDelete)

CreateLog

Does nothing for the XmlLogAdapter - log is created with first new entry instead

public sealed bool CreateLog()

DeleteLog

Deletes the XML log file

public sealed bool DeleteLog()

GetEntries

public IDataReader GetEntries()

public sealed IDataReader GetEntries(ErrorLevels errorLevel,     int count,     DateTime? dateFrom,     DateTime? dateTo,     string fieldList)

GetEntry

Returns an individual entry entity

public sealed WebLogEntry GetEntry(int id)

GetEntryCount

public sealed int GetEntryCount(ErrorLevels errorLevel)

GetEntryList

Not implemented yet

public sealed IEnumerable GetEntryList(ErrorLevels errorLevel,     int count,     DateTime? dateFrom,     DateTime? dateTo,     string fieldList)

WriteEntry

Writes an entry to the log

public sealed bool WriteEntry(WebLogEntry entry)

ConnectionString

The Xml Connection string is the filename

LogFilename

The name of the file where we're logging to

Requirements

Namespace: Westwind.Utilities.Logging
Assembly: westwind.utilities.dll

© West Wind Technologies, 2019 • Updated: 06/23/19
Comment or report problem with topic