개정판 f7e7a61a
issue #000: Markus Client Log FilePath 수정
Change-Id: I7b5d8115e72f03554a2441beb5b2bdffc7b2de13
SmartUpdate/MainWindow.xaml.cs | ||
---|---|---|
312 | 312 |
{ |
313 | 313 |
try |
314 | 314 |
{ |
315 |
string pathString = "C:\\ProgramData\\MARKUS\\" + "UpdateLog\\Err";
|
|
315 |
string pathString = App.AppDataFolder + "\\SmartUpdate";
|
|
316 | 316 |
if (!File.Exists(pathString)) |
317 | 317 |
{ |
318 | 318 |
Directory.CreateDirectory(pathString); |
319 | 319 |
} |
320 | 320 |
|
321 | 321 |
Err = Err + " " +DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss") + "\r\n"; |
322 |
string path = pathString + "\\" + "UpdateErrLog_" + DateTime.Now.ToString("yyyy-MM-dd hh-mm") + ".txt";
|
|
322 |
string path = pathString + "\\" + "Log_" + DateTime.Now.ToString("yyyy-MM-dd hh-mm") + ".txt"; |
|
323 | 323 |
File.AppendAllText(path, Err); |
324 | 324 |
} |
325 | 325 |
catch (Exception er) |
326 | 326 |
{ |
327 | 327 |
string strError = er.ToString(); |
328 |
//MessageBox.Show("err : " + er); |
|
329 | 328 |
} |
330 | 329 |
} |
331 | 330 |
private void LogFileWrite() |
332 | 331 |
{ |
333 | 332 |
try |
334 | 333 |
{ |
335 |
string pathString = "C:\\ProgramData\\MARKUS\\" + "UpdateLog";
|
|
334 |
string pathString = App.AppDataFolder + "\\SmartUpdate";
|
|
336 | 335 |
if (!File.Exists(pathString)) |
337 | 336 |
{ |
338 | 337 |
Directory.CreateDirectory(pathString); |
339 | 338 |
} |
340 | 339 |
|
341 |
FileStream fs = new FileStream(pathString + "\\UpdateLog_" + DateTime.Now.ToString("yyyy-MM-dd hh-mm-ss") + ".txt", FileMode.OpenOrCreate, FileAccess.Write);
|
|
340 |
FileStream fs = new FileStream(pathString + "\\Log_" + DateTime.Now.ToString("yyyy-MM-dd hh-mm-ss") + ".txt", FileMode.OpenOrCreate, FileAccess.Write); |
|
342 | 341 |
StreamWriter sw = new StreamWriter(fs); |
343 | 342 |
sw.WriteLine("<업그레이드 정보>"); |
344 | 343 |
sw.WriteLine("<업데이트 날짜>"); |
내보내기 Unified diff