Click or drag to resize

PFLogger Class

Provides methods to easily log errors and information on a loggable object.
Inheritance Hierarchy
SystemObject
  Packflow.CorePFLogger

Namespace:  Packflow.Core
Assembly:  MicaSystems.Packflow.Core (in MicaSystems.Packflow.Core.dll) Version: 1.0.0.0 (3.2.0.306)
Syntax
C#
public sealed class PFLogger : ILogger

The PFLogger type exposes the following members.

Constructors
  NameDescription
Public methodPFLogger
Initializes a new instance of the PFLogger class.
Top
Properties
  NameDescription
Public propertyCreated
Gets the time of creation of this logger instance.
Public propertyLastStep
Gets the last step of execution.
Public propertyLastStepsToShow
Gets or sets the last steps to show in an exception message.
Public propertyLimit_Steps
Gets or sets the limit of steps kept alive; older steps are erased.
Public propertyLogCriticals
Gets or sets a value indicating whether entries with "Critical" level are sent to the database. Default value: false.
Public propertyLogErrors
Gets or sets a value indicating whether entries with "Error" level are sent to the database. Default value: false.
Public propertyLoggedObject
Gets the loggable object.
Public propertyLogInformations
Gets or sets a value indicating whether entries with "Information" level are sent to the database. Default value: false.
Public propertyLogs
Gets the relation between a structure object and its log entries.
Public propertyLogSteps
Gets or sets a value indicating whether entries with "Step" level are sent to the database. Default value: false.
Public propertyLogWarnings
Gets or sets a value indicating whether entries with "Warning" level are sent to the database. Default value: false.
Public propertyParentSite
Gets the parent site.
Public propertySilent
Gets or sets a value indicating whether this PFLogger is silent. Raising this flag will disable any log occurring on this instance.
Top
Methods
  NameDescription
Public methodCritical(String)
Logs an entry with the level "Critical".
Public methodCritical(String, PFLogger_Category)
Logs an entry with the level "Critical".
Public methodError(String)
Logs an entry with the level "Error".
Public methodError(Exception, String)
Logs an entry with the level "Error".
Public methodError(String, PFLogger_Category)
Logs an entry with the level "Error".
Public methodError(String, Object)
Logs an entry with the level "Error".
Public methodError(String, String)
Logs an entry with the level "Error".
Public methodError(Exception, PFLogger_Category, String)
Logs an entry with the level "Error".
Public methodError(Exception, String, Object)
Logs an entry with the level "Error".
Public methodError(Exception, String, String)
Logs an entry with the level "Error".
Public methodError(Exception, PFLogger_Category, String, Object)
Logs an entry with the level "Error".
Public methodError(Exception, PFLogger_Category, String, String)
Logs an entry with the level "Error".
Public methodGetLastSteps
Gets the last steps recorded in this logger formatted in a single string.
Public methodInformation(String)
Logs an entry with the level "Information".
Public methodInformation(String, PFLogger_Category)
Logs an entry with the level "Information".
Public methodStep
Adds a step in the logger and format it using values.
Public methodStepConcat
Adds a step in the logger from texts to merge.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWarning(String)
Logs an entry with the level "Warning".
Public methodWarning(String)
Logs an entry with the level "Warning".
Public methodWarning(String, PFLogger_Category)
Logs an entry with the level "Warning".
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