LogContext MembersKentico 8.0 API Reference
The LogContext type exposes the following members.
Constructors

  NameDescription
Public methodLogContext 
Constructor - Registers the context within request.
Public methodLogContext(Guid)
Constructor - Registers the context within request.
Back to Top
Methods

  NameDescription
Public methodStatic memberAppend
Appends text to the log.
Protected methodAppendInternal
Appends the text.
Public methodStatic memberAppendLine
Appends text to the log.
Public methodClose
Closes the log.
Public methodStatic memberCloseCurrent
Drops the current log context.
Public methodStatic memberCloseLog
Closes given log context.
Public methodStatic memberEnsureLog
Ensures the log for given GUID.
Public methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodOnlineFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from OnlineObject.)
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Public methodStatic memberLogEvent
Writes a new record to the event log.
Public methodStatic memberLogExists
Returns true if the given log exists.
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodRaiseOnChanged
Fires the onchanged event.
Public methodOnlineToString
Returns a string that represents the current object.
(Inherited from OnlineObject.)
Back to Top
Extension Methods

  NameDescription
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Back to Top
Fields

  NameDescription
Protected fieldmEvent
Info object containing event.
Protected fieldmLog
Current log.
Protected fieldmLogGuid
Logs GUID.
Protected fieldStatic membermLogs
Table of existing logs [GUID] -> [LogContext]
Protected fieldmLogSingleEvents
Indicates whether to log events one by one to event log.
Protected fieldmMultipleOperationEventCode
Explicit event log code used when LogSingleEvents is false (case of multiple logging).
Back to Top
Properties

  NameDescription
Public propertyStatic memberCurrent
Gets or sets current log context.
Public propertyEvent
Info object of type EventLogInfo.
Public propertyEventURL
URL of event.
Public propertyIPAddress
IP address of client.
Public propertyLog
Gets the current log.
Public propertyLogGuid
Logs guid.
Public propertyLogSingleEvents
Indicates whether to log events one by one to event log.
Public propertyMachineName
Name of machine.
Public propertyMultipleOperationEventCode
Explicit event log code used when LogSingleEvents is false (case of multiple logging).
Public propertyUrlReferrer
Referrer url.
Public propertyUserAgent
Browser identification.
Back to Top
Events

  NameDescription
Public eventOnChanged
Fires when the log has changed.
Back to Top
See Also