Exemplo n.º 1
0
        private void WriteToJobLog(Job job, string logText)
        {
            Console.Write(logText);

            string targetPath = Path.Combine(JobPathHelper.GetLocalJobDirectory(job), job.ID + "_logfile.txt");

            DateTime time       = DateTime.Now;
            string   dateString = String.Format("[{0:dd/mm/yyyy HH:mm:ss}] ", time);

            try
            {
                StreamWriter writer = new StreamWriter(targetPath, true);
                writer.Write(dateString + logText);
                writer.Close();
            }
            catch
            {
            }
        }
Exemplo n.º 2
0
 public static string GetProductionAnimatedMotifPath(Production production, Motif motif)
 {
     return(Path.Combine(new string[] { JobPathHelper.GetLocalJobAnimatedMotifDiretory(production, motif), "motif_F0001.tga" }));
 }