| LogContext Class | 
Namespace: CMS.EventLog
public class LogContext : ILogContext, INotCopyThreadItem, IDisposable
The LogContext type exposes the following members.
| Name | Description | |
|---|---|---|
| LogContext | 
            Constructor - Registers the context within request.
              | |
| LogContext(Guid) | 
            Constructor - Registers the context within request.
              | 
| 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).
              | 
| 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.
              | |
| LogAlways | 
            If true, the context always logs regardless of the action context settings
              | |
| LogGuid | 
            Logs guid.
              | |
| LogSingleEvents | 
            Indicates whether to log events one by one to event log.
              | |
| MachineName | 
            Name of machine.
              | |
| MaxLength | 
            Maximum length of the log. If the length is exceeded, the log is trimmed to half, offset is set and the log continues.
              | |
| MultipleOperationEventCode | 
            Explicit event log code used when LogSingleEvents is false (case of multiple logging).
              | |
| Offset | 
            Offset of a partial log in a complete log
              | |
| UrlReferrer | 
            Referrer url.
              | |
| UserAgent | 
            Browser identification.
              | 
| Name | Description | |
|---|---|---|
| Append | 
            Appends text to the log.
              | |
| AppendLine | 
            Appends text to the log.
              | |
| AppendText | 
            Appends the text.
              | |
| Clear | 
            Clears the log
              | |
| Close | 
            Closes the log.
              | |
| CloseCurrent | 
            Drops the current log context.
              | |
| CloseLog | 
            Closes given log context.
              | |
| Dispose | 
            Disposes the object.
              | |
| Dispose(Boolean) | 
            Disposes object's log.
              | |
| EnsureLog | 
            Ensures the log for given GUID.
              | |
| LogEvent | 
            Writes a new record to the event log.
              | |
| LogEventToCurrent | 
            Writes a new record to the event log using Current context.
              | |
| LogExists | 
            Returns true if the given log exists.
              | |
| RaiseOnChanged | 
            Fires the onchanged event.
              | |
| SetAllowedContexts | 
            Sets the list of the context names that the log context accepts. Use empty string for context which logs messages that do not provide context.
              | 
| Name | Description | |
|---|---|---|
| OnChanged | 
            Fires when the log has changed.
              | |
| TextAppended | 
            Event which fires if some text is appended to the log
              |