[Spread-cvs] cvs commit: spread/daemon Readme.txt alarm.c alarm.h

jonathan at spread.org jonathan at spread.org
Sat Oct 2 18:16:01 EDT 2004


jonathan    04/10/02 18:16:00

  Modified:    daemon   Readme.txt alarm.c alarm.h
  Log:
  Add new flag to Alarm priority levels called SPLOG_PRINT_NODATE.
  When this priority level is used the line will be printed and no
  timestamp will be placed at the beginning of the line.
  This is useful for building multi-line alarm prints of complex datastructures
  without confusing and unneeded datestamps.
  
  Revision  Changes    Path
  1.62      +2 -0      spread/daemon/Readme.txt
  
  Index: Readme.txt
  ===================================================================
  RCS file: /storage/cvsroot/spread/daemon/Readme.txt,v
  retrieving revision 1.61
  retrieving revision 1.62
  diff -u -r1.61 -r1.62
  --- Readme.txt	27 Sep 2004 05:15:48 -0000	1.61
  +++ Readme.txt	2 Oct 2004 22:16:00 -0000	1.62
  @@ -91,6 +91,8 @@
       will not work correctly and is usually because the example localhost configuration
       provided with Spread is added to. This check will cause the daemon to exit 
       immediately after parsing the config file.
  +13) Add new Alarm priority flag to print a line with no datestamp (for multi-line output).
  +
   
   SOURCE INSTALL:
   ---------------
  
  
  
  1.8       +1 -1      spread/daemon/alarm.c
  
  Index: alarm.c
  ===================================================================
  RCS file: /storage/cvsroot/spread/daemon/alarm.c,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- alarm.c	22 Sep 2004 22:03:11 -0000	1.7
  +++ alarm.c	2 Oct 2004 22:16:00 -0000	1.8
  @@ -74,7 +74,7 @@
           {
   	    va_list ap;
   
  -	    if ( Alarm_timestamp_format )
  +	    if (  Alarm_timestamp_format && (priority != SPLOG_PRINT_NODATE) )
               {
   	        char timestamp[42];
   		struct tm *tm_now;
  
  
  
  1.6       +1 -0      spread/daemon/alarm.h
  
  Index: alarm.h
  ===================================================================
  RCS file: /storage/cvsroot/spread/daemon/alarm.h,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- alarm.h	5 Mar 2004 00:32:46 -0000	1.5
  +++ alarm.h	2 Oct 2004 22:16:00 -0000	1.6
  @@ -84,6 +84,7 @@
   #define         SPLOG_FATAL     6       /* Program will exit() or abort(). */
   
   #define         SPLOG_PRINT     7       /* Program should always print this information */
  +#define         SPLOG_PRINT_NODATE     8       /* Program should always print this information, but the datestamp should be omitted. */
   
   #ifdef  HAVE_GOOD_VARGS
   void Alarmp( int16 priority, int32 type, char *message, ...);
  
  
  




More information about the Spread-cvs mailing list