DragonFly On-Line Manual Pages

Search: Section:  


LOGC_DEFINES(3)                  User Manuals                  LOGC_DEFINES(3)

NAME

logc_defines - nglogc define switches

DESCRIPTION

nglogc provides two types of define switches to control the behaviour of logging at preprocessor time. The first type is for the FILE, LINE and FUNCTION makros to have more detailed logging output. These makros are available for each log function. With enabled makro the information filename:linenumber function - is put in front of the log message. LOGC_HAVE_FLF Enables the FILE, LINE, FUNCTION makro for each log function. LOGC_HAVE_FLF_BASIC Enables the FILE, LINE, FUNCTION makro for all log functions dedicated to the log level LOG_BASIC. LOGC_HAVE_FLF_WARNING Enables the FILE, LINE, FUNCTION makro for all log functions dedicated to the log level LOG_WARNING. LOGC_HAVE_FLF_INFO Enables the FILE, LINE, FUNCTION makro for all log functions dedicated to the log level LOG_INFO. LOGC_HAVE_FLF_FINE Enables the FILE, LINE, FUNCTION makro for all log functions dedicated to the log level LOG_FINE. LOGC_HAVE_FLF_FINEST Enables the FILE, LINE, FUNCTION makro for all log functions dedicated to the log level LOG_FINEST. The second type of defines is to enable or disable complete log messages that they are not linked. With these defines log messages could completely removed without any changes in the source code. Only the functions with the log level in their names are affected, functions with a log level as parameter could not be undefined. It is recommended to use the first type of log functions to be able to use this feature. Also all log and error log functions with the log level LOG_BASIC could not be undefined. Note that the log and error log functions with the log level LOG_FINE and LOG_FINEST are not enabled per default. Because these functions are intended for debug logging and in this way no define is needed for productive software to disable these logs. LOGC_DISABLE_WARN Disables all log and error log functions with the log level LOG_WARNING and LOG_INFO. LOGC_DISABLE_WARN_ERRS Disables all error log functions with the log level LOG_WARNING and LOG_INFO. LOGC_DISABLE_WARN_LOGS Disables all log functions with the log level LOG_WARNING and LOG_INFO. LOGC_ENABLE_LOW_LEVEL Enables all log and error log functions with the log level LOG_FINE and LOG_FINEST. LOGC_ENABLE_LOW_LEVEL_ERRS Enables all error log functions with the log level LOG_FINE and LOG_FINEST. LOGC_ENABLE_LOW_LEVEL_LOGS Enables all error log functions with the log level LOG_FINE and LOG_FINEST.

BUG REPORT

For bugreporting write a mail to ebrosius@netgarage.org or use the issues tracker on the project hosting site http://code.google.com/p/nglogc

COPYRIGHT

nglogc is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

AUTHOR

Dennis Krzyzaniak <ebrosius@netgarage.org>

SEE ALSO

logc_logError(3), logc_logArray(3), logc_log(3), logc_logEnter(3), logc_logger(3), the project site http://netgarage.org Linux October 2009 LOGC_DEFINES(3)

Search: Section: