WriteLog() public static method

Write text logs to log-file
public static WriteLog ( string section, string arguments ) : void
section string
arguments string
return void
Beispiel #1
0
        public override void BeginUpdateSilently()
        {
            // Skip this folder if update or commit is in progress
            foreach (ScmRepositoryProcess sp in scmFolderProcesses)
            {
                if (sp.repository.Path == Path)
                {
                    return;
                }
            }

            // updateRevision = GetRepositoryCommitedRevision();
            ExecuteResult er = ExecuteProcess(Config.GitPath, Path, "pull --all", false, false);

            Config.WriteLog("Git", String.Format("pull -all \"{0}\"", Path));
            scmFolderProcesses.Add(new ScmRepositoryProcess(this, er.process, true));
        }
Beispiel #2
0
        public override void BeginUpdateSilently()
        {
            // Skip this folder if update or commit is in progress
            foreach (ScmRepositoryProcess sp in svnFolderProcesses)
            {
                if (sp.repository.Path == Path)
                {
                    return;
                }
            }

            string        arguments = "pull";
            ExecuteResult er        = ExecuteProcess(Config.GitPath, Path, arguments, false, false);

            Config.WriteLog("Git", arguments);
            svnFolderProcesses.Add(new ScmRepositoryProcess(this, er.process, false));
        }
Beispiel #3
0
        public override void BeginUpdateSilently()
        {
            // Skip this folder if update or commit is in progress
            foreach (ScmRepositoryProcess sp in svnFolderProcesses)
            {
                if (sp.repository.Path == Path)
                {
                    return;
                }
            }

            updateRevision = GetRepositoryCommitedRevision();
            string        arguments = String.Format("update --non-interactive \"{0}\"", Path);
            ExecuteResult er        = ExecuteProcess(Config.GitPath, null, arguments, false, false);

            Config.WriteLog("Svn", arguments);
            svnFolderProcesses.Add(new ScmRepositoryProcess(this, er.process, true));
        }
Beispiel #4
0
 private static void FatalError(Exception e)
 {
     ShowError(e.ToString());
     Config.WriteLog("Error", e.ToString());
 }