public static CreateMulticastOpenGroup ( Guid monitorId, LogEntryType previousEntryType, DateTimeStamp previousLogTime, int depth, string text, DateTimeStamp t, LogLevel level, string fileName, int lineNumber, CKTrait tags, CKExceptionData ex ) : IMulticastLogEntry | ||
monitorId | Guid | Identifier of the monitor. |
previousEntryType | LogEntryType | Log type of the previous entry in the monitor.. |
previousLogTime | DateTimeStamp | Time stamp of the previous entry in the monitor. |
depth | int | Depth of the line (number of opened groups above). |
text | string | Text of the log entry. |
t | DateTimeStamp | Time stamp of the log entry. |
level | LogLevel | Log level of the log entry. |
fileName | string | Source file name of the log entry |
lineNumber | int | Source line number of the log entry |
tags | CKTrait | Tags of the log entry |
ex | CKExceptionData | Exception of the log entry. |
return | IMulticastLogEntry |
void IActivityMonitorClient.OnOpenGroup(IActivityLogGroup group) { var h = EnsureChannel(); if (h != null) { IMulticastLogEntry e = LogEntry.CreateMulticastOpenGroup(_monitorSource.UniqueId, _prevLogType, _prevlogTime, _currentGroupDepth, group.GroupText, group.LogTime, group.GroupLevel, group.FileName, group.LineNumber, group.GroupTags, group.EnsureExceptionData()); h.Handle(new GrandOutputEventInfo(e, _monitorSource.Topic)); ++_currentGroupDepth; _prevlogTime = group.LogTime; _prevLogType = LogEntryType.OpenGroup; } }
void IActivityMonitorClient.OnOpenGroup(IActivityLogGroup group) { if (_central.IsDisposed) { return; } Debug.Assert(_monitorSource != null, "Since we are called by the monitor..."); IMulticastLogEntry e = LogEntry.CreateMulticastOpenGroup(_central.GrandOutpuId, _monitorSource.UniqueId, _prevLogType, _prevlogTime, _currentGroupDepth, group.Data.Text, group.Data.LogTime, group.Data.Level, group.Data.FileName, group.Data.LineNumber, group.Data.Tags, group.Data.ExceptionData); _central.Sink.Handle(e); ++_currentGroupDepth; _prevlogTime = group.Data.LogTime; _prevLogType = LogEntryType.OpenGroup; }