private static void Main(params string[] args) { #if DEBUG Debug.AutoFlush = true; Debug.Listeners.Clear(); //Debug.Listeners.Add(new DelimitedListTraceListener(String.Format("{0}\\log{1:yyyy-MM-dd-HH-mm-ss}.txt",Environment.CurrentDirectory,DateTime.Now), "debug")); Debug.Listeners.Add(new DelimitedListTraceListener(Environment.CurrentDirectory + "\\last.log", "debug")); #endif SftpManagerApplication app = new SftpManagerApplication(); app.Run(args); }
private static void Main(params string[] args ) { #if DEBUG Debug.AutoFlush = true; Debug.Listeners.Clear(); //Debug.Listeners.Add(new DelimitedListTraceListener(String.Format("{0}\\log{1:yyyy-MM-dd-HH-mm-ss}.txt",Environment.CurrentDirectory,DateTime.Now), "debug")); Debug.Listeners.Add(new DelimitedListTraceListener(Environment.CurrentDirectory+"\\last.log", "debug")); #endif SftpManagerApplication app = new SftpManagerApplication(); app.Run(args); }
private static void Main(params string[] args) { #if DEBUG Debug.AutoFlush = true; //Debug.Listeners.Clear(); //Debug.Listeners.Add(new DelimitedListTraceListener(String.Format("{0}\\log{1:yyyy-MM-dd-HH-mm-ss}.txt",Environment.CurrentDirectory,DateTime.Now), "debug")); Debug.Listeners.Add(new DelimitedListTraceListener(Environment.CurrentDirectory + "\\last.log", "debug")); //Debug.Listeners.Add(Console.Out); #endif #if DEBUG && DEBUGSHADOWCOPY string shadowCopyDir = Environment.CurrentDirectory + "\\debug-shadow"; if (Directory.Exists(shadowCopyDir)) { Directory.Delete(shadowCopyDir, true); } #endif SftpManagerApplication app = new SftpManagerApplication(); app.Run(args); }