Mercurial > mercurial > hgweb_mover2.cgi
comparison src/main.cpp @ 20:d10eafafe31f v2.2dev
dirview delete
author | pyon@macmini |
---|---|
date | Tue, 25 Oct 2011 20:02:55 +0900 |
parents | 9b0840b0be7e |
children | c540dc3eabe5 |
comparison
equal
deleted
inserted
replaced
19:868ccd73e238 | 20:d10eafafe31f |
---|---|
1 // Filename : main.cpp | 1 // Filename : main.cpp |
2 // Last Change: 22-Oct-2011. | 2 // Last Change: 25-Oct-2011. |
3 // | 3 // |
4 | 4 |
5 #include "common.h" | 5 #include "common.h" |
6 #include "main.h" | 6 #include "main.h" |
7 #include "myframe.h" | 7 #include "myframe.h" |
100 void MyApp::WriteLog( wxString msg ) | 100 void MyApp::WriteLog( wxString msg ) |
101 { | 101 { |
102 wxDateTime now = wxDateTime::Now(); | 102 wxDateTime now = wxDateTime::Now(); |
103 wxTextFile logfile; | 103 wxTextFile logfile; |
104 logfile.Open(wxT("log")); | 104 logfile.Open(wxT("log")); |
105 logfile.AddLine( now.Format(wxT("%F %T ")) + msg ); | 105 logfile.AddLine( now.Format(wxT("%Y-%m-%d %H:%M:%S ")) + msg ); |
106 logfile.Write(); | 106 logfile.Write(); |
107 logfile.Close(); | 107 logfile.Close(); |
108 } | 108 } |
109 | 109 |