aboutsummaryrefslogtreecommitdiff
path: root/src/util/common_logging.c
Commit message (Collapse)AuthorAge
* TG: attached are the following patches for GNUnet:Christian Grothoff2012-02-23
| | | | | | | | | | | | | | | - 1: added GNUNET_i2s_full - full variant of GNUNET_i2s - 2: GNUNET_CRYPTO_hash_from_string2 with additional length parameter, useful to prevent an additional strlen call when the caller already knows the length - 3: custom mst callbacks for the server, enables using the server with a custom parser - 4: added GNUNET_SERVER_client_set_finish_pending_write - enables changing the server behavior to finish pending writes when closing the connection Best regards, Gabor Adam Toth
* -use GNUNET_free instead of freeChristian Grothoff2012-02-13
|
* -dceChristian Grothoff2012-01-25
|
* -LRN: use FPRINTF -- #2051Christian Grothoff2011-12-30
|
* -LRN: fix syscall nameChristian Grothoff2011-12-30
|
* LRN: correct behaviour when logfile does not existChristian Grothoff2011-12-06
|
* LRN: Ensure that GTK can then do the internal call write(2, message, strlenChristian Grothoff2011-12-06
| | | | | | (message)); successfully by default.
* -fixing indentationChristian Grothoff2011-11-29
|
* -more doxygen fixesChristian Grothoff2011-11-28
|
* introducing GNUNET_abortChristian Grothoff2011-11-05
|
* treat empty string as NULLChristian Grothoff2011-11-05
|
* LRN: Use regexps in logdefsChristian Grothoff2011-11-05
| | | | | | | | | | | | | Now "*" is not valid anymore (it's not like anyone had a lot of opportunities to use it though). Empty string means ".*", so it's still compatible. Matching is case-sensitive. ^ and $ match the beginning and the end of the text, newine matches a newline character. All regexps are considered non-extended. Regex compilation errors are not reported in any way (the parsing process just fails, and that's it).
* curly wars / auto-indentationChristian Grothoff2011-11-04
|
* LRN: Use GNUNET_strdup() instead of strdup()Christian Grothoff2011-10-14
|
* allow NULLChristian Grothoff2011-10-12
|
* check vspnrintf return value, stack-allocate log bufferChristian Grothoff2011-10-11
|
* converting to GNUNET_LOG_from*Christian Grothoff2011-10-11
|
* LRN: Fix logdef processing logicChristian Grothoff2011-10-09
| | | | | | Now if logdef matches, it is used to both allow AND restrict the call.
* LRN's big logging rewrite (#1805):Christian Grothoff2011-10-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * GNUNET_BOTTOM_LOGLEVEL and GNUNET_TOP_LOGLEVEL set global levels Use bottom level to force logging to be more verbose than configured Use top level to force logging to be less verbose than configured Obviously, bottom <= top * GNUNET_LOG sets per-component levels GNUNET_LOG looks like this: name[/bottom[/top]]/... name starts with a non-digit character, must not include '/' bottom and top must consist only of digits, or be empty a description is only used if it matches the component exactly as a special exception (for now) the name '*' matches any component per-component loglevels override global loglevels global levels override whatever is given via arguments or in config Examples: test_client/8/8/ run test_client with DEBUG level (usually leads to a timeout, by the way) */2/2/core/8/8/transport/4/4 run everything with WARNING, core - with DEBUG, transport - with INFO *//1/peerinfo/4/ run everything with top loglevel ERROR, global/configured bottom loglevel, and peerinfo - with bottom loglevel INFO and global/configured top loglevel statistics/ does nothing * Added GNUNET_ERROR_TYPE_UNSPECIFIED enum value, to hold -1. Its corresponding string is NULL. * Changed the logger calls as Grothoff suggested - to use static int to hold the result of runtime evaluation of logability. Logging can be unconditionally disabled in advance by defining GNUNET_LOG_CALL_STATUS to 0, and enabled in advance by defining it to 1. * Added GNUNET_CULL_LOGGING, which, if defined, completely culls out all logging calls at compile time. * Log definition parsing is only done once, results are cached. * Changed definition format, now it looks like this: [component|*|];[file|*|];[function|*|];[from_line[-to_line]];level/[component...] All field separators are mandatory (but some fields could be empty or be '*'). Line definition must be either empty or "number" or "number-number" Level definition must not be empty, and is a string representation of the level (i.e. DEBUG, WARNING, INFO, etc). Definition entry must end with a slash, whether or not there's another entry after it. File name is matched to the end of __FILE__, which allows file name to match not only the base name, but also directories leading to it. * Removed default WARNING loglevel from program and service utility code. Now they default to NULL (UNSPECIFIED) level, which can be overriden by GNUNET_LOG definition, if no level is specified via config or commandline. Log levels from config or commandline are overriden by GNUNET_FORCE_LOG. If GNUNET_*LOG are undefined, and no levels came from config or commandline, logger internally defaults to WARNING level. Add --enable-logging configure option
* indentationChristian Grothoff2011-08-15
|
* indentationChristian Grothoff2011-08-15
|
* LRN: Allow env vars to adjust and override loglevelChristian Grothoff2011-08-01
|
* high-precision LOG timersChristian Grothoff2011-06-20
|
* fixChristian Grothoff2011-02-24
|
* log with pidChristian Grothoff2010-11-23
|
* LRN patch from Mantis #1615Christian Grothoff2010-11-05
|
* Changed GNUNET_TIME_Absolute and GNUNET_TIME_Relative to allow safe ↵Matthias Wachs2010-10-27
| | | | comparisons between time values
* fix warningNils Durner2010-10-08
|
* fixChristian Grothoff2010-08-14
|
* ignore sigpipeNathan S. Evans2010-07-30
|
* cleaning argz messChristian Grothoff2010-06-25
|
* fixChristian Grothoff2010-06-22
|
* styleChristian Grothoff2010-06-20
|
* check lenChristian Grothoff2010-06-18
|
* fixesChristian Grothoff2010-06-17
|
* sizeChristian Grothoff2010-06-11
|
* fixChristian Grothoff2010-06-07
|
* UNIX domain socket supportChristian Grothoff2010-06-05
|
* flushChristian Grothoff2010-03-16
|
* expand ~ in log file nameChristian Grothoff2010-03-16
|
* copy component name for bulk due to possibility of plugin unloadingChristian Grothoff2010-03-15
|
* cancel pending write if we are just dead anywayChristian Grothoff2010-03-12
|
* mkdirChristian Grothoff2010-03-12
|
* log with pidChristian Grothoff2010-02-27
|
* MinGW fixesNils Durner2009-11-15
|
* fixing bio testcase and a bug in bio.c, also indentingChristian Grothoff2009-11-01
|
* better commentsChristian Grothoff2009-10-08
|
* improving documentationChristian Grothoff2009-10-07
|
* some doxygen fixesChristian Grothoff2009-09-30
|
* documentation cleanupChristian Grothoff2009-09-22
|