The LogContext type exposes the following members.
Back to Top
Back to Top
Back to Top
Back to Top
Back to Top
Back to Top
Constructors
Name | Description | |
---|---|---|
LogContext |
Constructor - Registers the context within request.
| |
LogContext(Guid) |
Constructor - Registers the context within request.
|
Methods
Name | Description | |
---|---|---|
Append |
Appends text to the log.
| |
AppendInternal |
Appends the text.
| |
AppendLine |
Appends text to the log.
| |
Close |
Closes the log.
| |
CloseCurrent |
Drops the current log context.
| |
CloseLog |
Closes given log context.
| |
EnsureLog |
Ensures the log for given GUID.
| |
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
LogEvent |
Writes a new record to the event log.
| |
LogExists |
Returns true if the given log exists.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
RaiseOnChanged |
Fires the onchanged event.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Extension Methods
Name | Description | |
---|---|---|
GetAPIString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
GetString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
ToBoolean |
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDateTime |
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDouble |
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToGuid |
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToInteger |
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToString |
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.) |
Fields
Name | Description | |
---|---|---|
mEvent |
Info object containing event.
| |
mLog |
Current log.
| |
mLogGuid |
Logs GUID.
| |
mLogs |
Table of existing logs [GUID] -> [LogContext]
| |
mLogSingleEvents |
Indicates whether to log events one by one to event log.
| |
mMultipleOperationEventCode |
Explicit event log code used when LogSingleEvents is false (case of multiple logging).
|
Properties
Name | Description | |
---|---|---|
Current |
Gets or sets current log context.
| |
Event |
Info object of type EventLogInfo.
| |
EventURL |
URL of event.
| |
IPAddress |
IP address of client.
| |
Log |
Gets the current log.
| |
LogGuid |
Logs guid.
| |
LogSingleEvents |
Indicates whether to log events one by one to event log.
| |
MachineName |
Name of machine.
| |
MultipleOperationEventCode |
Explicit event log code used when LogSingleEvents is false (case of multiple logging).
| |
UrlReferrer |
Referrer url.
| |
UserAgent |
Browser identification.
|
Events
Name | Description | |
---|---|---|
OnChanged |
Fires when the log has changed.
|
See Also