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); }
public StackCommand(string message, ELogDestination logDestination) { this.message = message; this.logDestination = logDestination; }