Beispiel #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);
        }
Beispiel #2
0
 public LogScope(LogTunnel log, string title, ILogScopeSyncImplementation logScopeSyncImplementation)
     : this(log, new OpenLogScopeTitle(title), logScopeSyncImplementation)
 {
 }
Beispiel #3
0
 public LogScope(LogTunnel log, ILogScopeSyncImplementation logScopeSyncImplementation)
     : this(log, new OpenLogScopeTitle(string.Empty), logScopeSyncImplementation)
 {
 }