Show
Ignore:
Timestamp:
05/13/06 20:33:09 (3 years ago)
Author:
jvw
Message:

Logfile size-limit and automatic logfile rotation, very useful for crash tracing

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/txlib/include/txcon.h

    r11 r13  
    11831183BOOL TxAppendToLogFile                          // RET   logfile opened 
    11841184( 
    1185    char                *fname                   // IN    name of (new) logfile 
     1185   char               *fname,                   // IN    name of (new) logfile 
     1186   BOOL                verbose                  // IN    Show the action 
    11861187); 
    11871188 
     
    12141215); 
    12151216 
     1217// Construct name for new logfile based upon a sequence number 0..n 
     1218char *TxBuildLogName                            // RET   filename 
     1219( 
     1220   ULONG               seq,                     // IN    sequence number 
     1221   TXLN                buf                      // IN    filename buffer 
     1222); 
    12161223 
    12171224// Output textual information in array of char-pointers 
     
    12351242); 
    12361243 
     1244// Set logfile maximum size per file 
     1245void TxSetLogMaxSize 
     1246( 
     1247   ULONG               size                     // IN    maximum size, bytes 
     1248); 
     1249 
     1250// Set logfile number of files to retain on cycle, #files besides .log itself 
     1251void TxSetLogRetain 
     1252( 
     1253   ULONG               retain                   // IN    retain count 
     1254); 
    12371255 
    12381256// Make ascii-dump of data area on TxPrint output