Пример #1
0
        protected LogScope(LogTunnel log, OpenLogScopeTitle title, ILogScopeSyncImplementation logScopeSyncImplementation)
        {
            m_Log = log;
            title.ParentLogId = logScopeSyncImplementation.GetScopeId();
            m_logScopeSyncImplementation = logScopeSyncImplementation;
            m_parent = logScopeSyncImplementation.LogScope;
            m_longScopeScopeId = Interlocked.Increment(ref m_logScopeIdCount);
            logScopeSyncImplementation.LogScope = this;

            m_Log.Log(title);
        }
Пример #2
0
 public LogScope(LogTunnel log, string title, ILogScopeSyncImplementation logScopeSyncImplementation)
     : this(log, new OpenLogScopeTitle(title), logScopeSyncImplementation)
 {
 }
Пример #3
0
 public LogScope(LogTunnel log, ILogScopeSyncImplementation logScopeSyncImplementation)
     : this(log, new OpenLogScopeTitle(string.Empty), logScopeSyncImplementation)
 {
 }