Exemple #1
0
 static public void MarkTraceFileForStore(string reason_in, bool immediateSave_in)
 {
     MarkTraceFileForStore(reason_in);
     if (immediateSave_in)
     {
         TheOnlyOne.SaveTrace();
     }
 }
Exemple #2
0
 /// <summary>
 /// creates TextWriterTraceListener, to file "%MyDocuments%\{ApplicationName}\{subDir_in}\last_trace.txt"
 /// subDir_in is optional, and only one livel is supported
 /// Creates directories automatically.
 ///
 /// You can modify TraceOptions by e.g. TraceHelper.TraceOutputOptions = TraceOptions.Timestamp;
 ///
 /// -Stores the last 20 trace
 /// -Stores trace automatically if exception has been occured
 /// -Deletes trace files older than 3 mounths
 ///
 /// </summary>
 /// <param name="subDir_in">optional subdirectory</param>
 /// <returns>true - OK</returns>
 static public bool SetupListener(string subDir_in)
 {
     return(TheOnlyOne.SetupListener_NoneStatic(subDir_in));
 }
Exemple #3
0
 /// <summary>
 /// creates TextWriterTraceListener, to file "%MyDocuments%\{ApplicationName}\last_trace.txt"
 /// </summary>
 /// <returns></returns>
 static public bool SetupListener()
 {
     return(TheOnlyOne.SetupListener_NoneStatic(string.Empty));
 }