Пример #1
0
        public Logger(ELogDestination logDestination)
        {
            this.logDestination = logDestination;

            if (logDestination == ELogDestination.File || logDestination == ELogDestination.All)
            {
                string date = GetLocalDateString();
                path = Directory.GetCurrentDirectory() + $"/logs/{date}.log";
                Directory.CreateDirectory(new FileInfo(path).Directory.FullName);
            }

            logThreader = new Threader(LogThread);
        }
Пример #2
0
 public StackCommand(string message, ELogDestination logDestination)
 {
     this.message        = message;
     this.logDestination = logDestination;
 }