Skip to Content.
Sympa Menu

ndt-dev - [ndt-dev] [ndt] r691 committed - Extended description of the logging subsystem.

Subject: NDT-DEV email list created

List archive

[ndt-dev] [ndt] r691 committed - Extended description of the logging subsystem.


Chronological Thread 
  • From:
  • To:
  • Subject: [ndt-dev] [ndt] r691 committed - Extended description of the logging subsystem.
  • Date: Thu, 06 Oct 2011 08:37:02 +0000

Revision: 691
Author:

Date: Thu Oct 6 01:36:42 2011
Log: Extended description of the logging subsystem.
http://code.google.com/p/ndt/source/detail?r=691

Modified:
/wiki/NDTArchitecture.wiki

=======================================
--- /wiki/NDTArchitecture.wiki Thu Oct 6 01:31:55 2011
+++ /wiki/NDTArchitecture.wiki Thu Oct 6 01:36:42 2011
@@ -61,8 +61,8 @@

The brief information about each of the NDT subsystem can be found in the following table. All source files are located in the *src* directory under the root of the checked out sources from the code repository.

-|| *Subsystem* || *Used by* || *Description* || *Example functions* || *Sources* ||
-|| logging || web100srv<br/>web100clt || Logging subsystem that is responsible for printing informational messages on to the console. It can filter messages according to the currently set debug level. || {{{log_println(int lvl, const char* format, ...)}}} || {{{logging.c logging.h}}} ||
+|| *Subsystem* || *Used by* || *Description* || *Functions* || *Sources* ||
+|| logging || web100srv<br/>web100clt || Logging subsystem that is responsible for printing informational messages on to the console. It can filter messages according to the currently set debug level. Moreover, this subsystem is also responsible for dates/timestamps handling. || {{{void log_init(char* progname, int debuglvl)}}}<br/>{{{void set_debuglvl(int debuglvl); void set_logfile(char* filename)}}}<br/>{{{int get_debuglvl()}}}<br/>{{{char* get_logfile()}}}<br/>{{{I2ErrHandle get_errhandle()}}}<br/>{{{void log_print(int lvl, const char* format, ...)}}}<br/>{{{void log_println(int lvl, const char* format, ...)}}}<br/>{{{void log_free(void)}}}<br/>{{{void set_timestamp()}}}<br/>{{{time_t get_timestamp()}}}<br/>{{{long int get_utimestamp()}}}<br/>{{{char * get_ISOtime(char * isoTime)}}}<br/>{{{void get_YYYY(char * year)}}}<br/>{{{void get_MM(char * month)}}}<br/>{{{void get_DD(char * day)}}} || {{{logging.c logging.h}}} ||
|| network || web100srv<br/>web100clt || Subsystem that is responsible for all network operations. || {{{CreateListenSocket(I2Addr addr, char* serv, int options, int buf_size)}}}<br/>{{{send_msg(int ctlSocket, int type, void* msg, int len)}}}<br/>{{{recv_msg(int ctlSocket, int* type, void* msg, int* len)}}} || {{{network.c network.h}}} ||
|| protocol || web100srv<br/>web100clt || Functions to support [NDTProtocol NDT Protocol]. || {{{check_msg_type(char* prefix, int expected, int received, char* buff, int len)}}} || {{{protocol.c protocol.h}}} ||
|| utils || web100srv<br/>web100clt || Functions to handle numbers sanity checks and some other utility things. || {{{check_int(char* text, int* number)}}}<br/>{{{check_rint(char* text, int* number, int minVal, int maxVal)}}} || utils.c utils.h ||


  • [ndt-dev] [ndt] r691 committed - Extended description of the logging subsystem., ndt, 10/06/2011

Archive powered by MHonArc 2.6.16.

Top of Page