Click or drag to resize

Log Class

Represents a log file. Entry point to add entries to a log.
Inheritance Hierarchy
SystemObject
  Packflow.FileLoggerLog

Namespace:  Packflow.FileLogger
Assembly:  MicaSystems.Utils (in MicaSystems.Utils.dll) Version: 1.0.0.0 (1.1.0.123)
Syntax
C#
public class Log

The Log type exposes the following members.

Constructors
  NameDescription
Public methodLog
Initializes a log file. Entry point to add entries to a log.
Top
Properties
  NameDescription
Public propertyEntries
All entries added in this log since its creation.
Top
Methods
  NameDescription
Public methodAddEntry(String)
Adds an entry in the log (event triggered + file delayed).
Public methodAddEntry(Object, DataReceivedEventArgs)
Adds an entry in the log (event triggered + file delayed).
Public methodAddEntry(String, LogEntryType)
Adds an entry in the log (event triggered + file delayed).
Public methodAddEntry(LogEntryType, String)
Adds an entry in the log (event triggered + file delayed).
Public methodAddEntry(String, LogEntryType, Boolean)
Adds an entry in the log (event triggered + file delayed).
Public methodCloseLogFile
Adds all entries in the log file and then close the file.
Protected methodFinalize
Finalizes an instance of the Log class.
(Overrides ObjectFinalize.)
Public methodLogError
Logs the specified exception.
Public methodStartLogFile
Creates log file.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventLogEntryAdded
Event triggered when an entry is added.
Top
Extension Methods
  NameDescription
Public Extension MethodAsT
Casts an object to another type. Returns default(T) if the object is null.
(Defined by Utils_Other.)
Public Extension MethodEqualsAll
Checks that this object is equal to every object in parameters.
(Defined by Utils_Other.)
Public Extension MethodEqualsAny
Checks that this object is equal to at least one of the parameters.
(Defined by Utils_Other.)
Public Extension MethodGetString
Converts an object to String using ToString() method, else returns String.Empty.
(Defined by Utils_Other.)
Public Extension MethodIsGenericListOverloaded.
Checks if this object is a System.Collections.Generic.List.
(Defined by Utils_Linq.)
Public Extension MethodIsGenericList(Type)Overloaded.
Checks if this object is a System.Collections.Generic.List using type as T.
(Defined by Utils_Linq.)
Public Extension MethodSerializeOverloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.)
Public Extension MethodSerialize(String)Overloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.)
Public Extension MethodSerializeJsonOverloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Public Extension MethodSerializeJson(ListType)Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Public Extension MethodSerializeJson(DataContractJsonSerializerSettings)Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Top
See Also