public ATCLogger(string workingDir)
        {
            rootWorkingDir = workingDir;
            logDir         = Path.Combine(workingDir, "logs");
            startTime      = DateTime.Now;

            Inst = this;
        }
示例#2
0
        public ATCTaskProxy(string title, string logcat)
        {
            _title  = title;
            Rootcat = logcat;
            Subcat  = null;

            ATCLogger.AddListener(Rootcat, this);
        }
示例#3
0
        public ATCTaskProxy(string title, string rootcat, Guid guid)
        {
            _title  = title;
            Rootcat = rootcat;
            Subcat  = guid.ToString("N");

            ATCLogger.AddListener(Rootcat + "::" + Subcat, this);
        }
示例#4
0
		protected ATCModule(ATCLogger l, SettingsModule s, string wd, string m)
		{
			logger = l;
			SettingsBase = s;
			Modulename = m;
			WorkingDirectory = Path.Combine(wd, Modulename);
			Directory.CreateDirectory(WorkingDirectory);
			StartTime = DateTime.Now;
		}
示例#5
0
 public void RegisterRoot()
 {
     ATCLogger.AddListener(string.Empty, this);
 }