CT-1 蘇迪勒颱風:雲林CCSTRACE颱風期間掛點問
| | |
| | | return _Record;
|
| | | }
|
| | |
|
| | | RecordLog _PLog = new RecordLog(CCS.LocalVariable.CCS_ListPath + "MAIN.txt");
|
| | | private void Log(String message)
|
| | | {
|
| | | _PLog.Error(message);
|
| | | _PLog.Close();
|
| | | RecordLog _PLog = null;
|
| | | try
|
| | | {
|
| | | _PLog = new RecordLog(CCS.LocalVariable.CCS_ListPath + "MAIN.txt");
|
| | | _PLog.Error(message);
|
| | | }
|
| | | catch
|
| | | { |
| | | }
|
| | | finally
|
| | | {
|
| | | if (_PLog != null)
|
| | | {
|
| | | _PLog.Close();
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | }
|
| | |
| | |
|
| | | namespace CCSTrace.CCS
|
| | | {
|
| | | public class RecordLog |
| | | public class RecordLog
|
| | | {
|
| | | private System.IO.StreamWriter _SWriter;
|
| | | private System.IO.StreamWriter _SWriter = null;
|
| | |
|
| | | public RecordLog(String FilePath)
|
| | | {
|
| | |
| | | {
|
| | | _SWriter.Close();
|
| | | }
|
| | |
|
| | | }
|
| | | }
|