Table of Contents

Class BinaryLogFormatter

Namespace
Microsoft.Practices.EnterpriseLibrary.Logging.Formatters
Assembly
Microsoft.Practices.EnterpriseLibrary.Logging.dll

Log formatter that will format a LogEntry in a way suitable for wire transmission.

public class BinaryLogFormatter : LogFormatter, ILogFormatter
Inheritance
BinaryLogFormatter
Implements
Inherited Members

Constructors

BinaryLogFormatter()

Initializes a new instance of the BinaryLogFormatter class.

public BinaryLogFormatter()

Methods

Deserialize(string)

Deserializes the string representation of a LogEntry into a LogEntry instance.

public static LogEntry Deserialize(string serializedLogEntry)

Parameters

serializedLogEntry string

The serialized LogEntry representation.

Returns

LogEntry

The LogEntry.

Format(LogEntry)

Formats a log entry as a serialized representation.

public override string Format(LogEntry log)

Parameters

log LogEntry

The LogEntry to format.

Returns

string

A string version of the LogEntry that can be deserialized back to a LogEntry instance.

Remarks

Will use a BinaryFormatter for doing the actual serialization.