static public WriteLog ( CKBinaryWriter w, Guid monitorId, LogEntryType previousEntryType, DateTimeStamp previousLogTime, int depth, bool isOpenGroup, LogLevel level, DateTimeStamp logTime, string text, CKTrait tags, CKExceptionData ex, string fileName, int lineNumber ) : void | ||
w | CKBinaryWriter | Binary writer to use. |
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). |
isOpenGroup | bool | True if this the opening of a group. False for a line. |
level | LogLevel | Log level of the log entry. |
logTime | DateTimeStamp | Time stamp of the log entry. |
text | string | Text of the log entry. |
tags | CKTrait | Tags of the log entry |
ex | CKExceptionData | Exception of the log entry. |
fileName | string | Source file name of the log entry |
lineNumber | int | Source line number of the log entry |
return | void |
/// <summary> /// Writes a group opening entry as a uni-cast compact entry or as a multi-cast one if needed. /// </summary> /// <param name="g">The group line.</param> /// <param name="adapter">Multi-cast information to be able to write multi-cast entry when needed.</param> public void UnicastWriteOpenGroup(IActivityLogGroup g, IMulticastLogInfo adapter) { BeforeWriteEntry(); Debug.Assert(_writer != null); LogEntry.WriteLog(_writer, adapter.GrandOutputId, adapter.MonitorId, adapter.PreviousEntryType, adapter.PreviousLogTime, adapter.GroupDepth, true, g.Data.Level, g.Data.LogTime, g.Data.Text, g.Data.Tags, g.Data.ExceptionData, g.Data.FileName, g.Data.LineNumber); AfterWriteEntry(); }
/// <summary> /// Writes a line entry as a uni-cast compact entry or as a multi-cast one if needed. /// </summary> /// <param name="data">The log line.</param> /// <param name="adapter">Multi-cast information to be able to write multi-cast entry when needed.</param> public void UnicastWrite(ActivityMonitorLogData data, IMulticastLogInfo adapter) { BeforeWriteEntry(); Debug.Assert(_writer != null); LogEntry.WriteLog(_writer, adapter.GrandOutputId, adapter.MonitorId, adapter.PreviousEntryType, adapter.PreviousLogTime, adapter.GroupDepth, false, data.Level, data.LogTime, data.Text, data.Tags, data.ExceptionData, data.FileName, data.LineNumber); AfterWriteEntry(); }
/// <summary> /// Writes a group opening entry as a uni-cast compact entry or as a multi-cast one if needed. /// </summary> /// <param name="g">The group line.</param> /// <param name="adapter">Multi-cast information to be able to write multi-cast entry when needed.</param> public void UnicastWriteOpenGroup(IActivityLogGroup g, IMulticastLogInfo adapter) { BeforeWrite(); LogEntry.WriteLog(_writer, adapter.MonitorId, adapter.PreviousEntryType, adapter.PreviousLogTime, adapter.GroupDepth, true, g.GroupLevel, g.LogTime, g.GroupText, g.GroupTags, g.ExceptionData, g.FileName, g.LineNumber); AfterWrite(); }