Changeset 964 for trunk/psLib/src/sys/psLogMsg.h
- Timestamp:
- Jun 9, 2004, 2:09:55 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sys/psLogMsg.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psLogMsg.h
r497 r964 15 15 */ 16 16 17 /// Sets the log destination 18 int psSetLogDestination(int dest); 17 /// This procedure sets the destination for future log messages. Currently 18 /// the destination is specified by an integer which can have the following 19 /// pre-defined values: PS_LOG_NONE, PS_LOG_TO_STDOUT, and PS_LOG_TO_STDERR. 20 /// IN future versions, this procedure will take a character string as an 21 /// argument which can specify more general log destinations. 22 int psLogSetDestination(int dest); 19 23 20 /// Sets the log level 21 int psSetLogLevel(int level); 24 /// This procedure sets the global level for future log messages. Future 25 /// log messages, each with a log level of mylevel, will only be logged if 26 /// their mylevel is less than the current log level set by this procedure. 27 /// Ie. higher values set by this procedure will cause more log messages to 28 /// be displayed. 29 int psLogSetLevel(int level); 22 30 23 /// sets the log format 24 void psSetLogFormat(const char *fmt); 31 /// This procedure sets the log format for future log messages. The argument 32 /// must be a character string consistsing of the letters H (host), L 33 /// (level), M (message), N (name), and T (time). The default is "THLNM". 34 /// Deleting a letter from the string will cause the associated information 35 /// to not be logged. 36 void psLogSetFormat(const char *fmt); 25 37 26 /// Logs a message 38 39 /// This procedure logs a message to the destination set by a prior 40 /// call to psLogSetDestination(), if myLevel is less than the level 41 /// specified by a prior call to psLogSetLevel(). The message is specified 42 /// with a printf-stype string an arguments. 27 43 void psLogMsg(const char *name, ///< name of the log source 28 44 int myLevel, ///< severity level of this log message … … 30 46 ; 31 47 32 /// Logs a message from varargs 48 49 50 /// This procedure is functionally equivalent to psLogMsg(), except that 51 /// it takes a va_list as the message paramater, not a printf-style string. 33 52 void psVLogMsg(const char *name, ///< name of the log source 34 53 int myLevel, ///< severity level of this log message
Note:
See TracChangeset
for help on using the changeset viewer.
