Ejemplo n.º 1
0
        public void RemoveTraceFile(string file)
        {
            if (!_traceFiles.ContainsKey(file))
            {
                throw new PBException("error unknow trace file : \"{0}\"", file);
            }
            Log_v1 log = _traceFiles[file];

            _traceFiles.Remove(file);
            //Writed -= new WritedEvent(log.Write);
            _writeToTraceFiles -= log.Write;
        }
Ejemplo n.º 2
0
        public void AddTraceFile(string file, LogOptions_v1 options = LogOptions_v1.None)
        {
            if (_traceFiles.ContainsKey(file))
            {
                throw new PBException("error trace file already exist : \"{0}\"", file);
            }
            Log_v1 log = new Log_v1(file, options);

            _traceFiles.Add(file, log);
            //Writed += new WritedEvent(log.Write);
            _writeToTraceFiles += log.Write;
        }
Ejemplo n.º 3
0
 public void RemoveTraceFile(string file)
 {
     if (!_traceFiles.ContainsKey(file))
         throw new PBException("error unknow trace file : \"{0}\"", file);
     Log_v1 log = _traceFiles[file];
     _traceFiles.Remove(file);
     //Writed -= new WritedEvent(log.Write);
     _writeToTraceFiles -= log.Write;
 }
Ejemplo n.º 4
0
 public void AddTraceFile(string file, LogOptions_v1 options = LogOptions_v1.None)
 {
     if (_traceFiles.ContainsKey(file))
         throw new PBException("error trace file already exist : \"{0}\"", file);
     Log_v1 log = new Log_v1(file, options);
     _traceFiles.Add(file, log);
     //Writed += new WritedEvent(log.Write);
     _writeToTraceFiles += log.Write;
 }