Exemple #1
0
        static Log()
        {
            LogDirectory = CommandLine.WorkingDirectory + "/Logs";

            if (CommandLine.HasSwitch("-logfile"))
            {
                LogDirectory = System.IO.Path.GetDirectoryName(CommandLine.GetSwitch("-logfile", LogDirectory));
                LogDirectory = LogDirectory.Replace("\\", "/").TrimEnd('/');

                if (string.IsNullOrEmpty(LogDirectory))
                {
                    LogDirectory = CommandLine.WorkingDirectory.TrimEnd('/');
                }
            }
        }