aboutsummaryrefslogtreecommitdiff
path: root/src/util/common_logging.c
AgeCommit message (Collapse)Author
2013-02-05-do not fail hard on log skip checksgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@26031 140774ce-b5e7-0310-ab8b-a85725594a96
2012-09-27reducing error messages about missing configuration options by introducing ↵grothoff
new helper functions to print them uniformly git-svn-id: https://gnunet.org/svn/gnunet@24060 140774ce-b5e7-0310-ab8b-a85725594a96
2012-09-18-short hash output funcschanzen
git-svn-id: https://gnunet.org/svn/gnunet@23888 140774ce-b5e7-0310-ab8b-a85725594a96
2012-09-16-fixing #2546grothoff
git-svn-id: https://gnunet.org/svn/gnunet@23833 140774ce-b5e7-0310-ab8b-a85725594a96
2012-06-29-fixesgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@22386 140774ce-b5e7-0310-ab8b-a85725594a96
2012-06-23-LRN: Support [] (formatted to be pid) in logfile names:grothoff
I needed it for mesh debugging. Wrote this patch before your log rotation changes, and had to hastily adapt it after them, so i'm not sure it actually works. Did some quick tests on it, and it appears to be working, so i'll just send it to you as is, and see how it turns out. git-svn-id: https://gnunet.org/svn/gnunet@22240 140774ce-b5e7-0310-ab8b-a85725594a96
2012-06-23-LRN: Lock the output on W32:grothoff
Purely W32 patch. It was needed for some threading-related debugging i did for select() wrapper. Shouldn't harm to have it, in case i do logging from multiple threads again. git-svn-id: https://gnunet.org/svn/gnunet@22239 140774ce-b5e7-0310-ab8b-a85725594a96
2012-06-23-LRN: Change logskipping to use functions only:grothoff
Remember these weird "skip_log" functions in my gdb backtraces? I hope that this patch will get rid of them. Shouldn't affect existing uses of the API. git-svn-id: https://gnunet.org/svn/gnunet@22238 140774ce-b5e7-0310-ab8b-a85725594a96
2012-06-23-fixgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@22228 140774ce-b5e7-0310-ab8b-a85725594a96
2012-06-22-fix #2122 and #2035grothoff
git-svn-id: https://gnunet.org/svn/gnunet@22215 140774ce-b5e7-0310-ab8b-a85725594a96
2012-06-12-consistently use struct GNUNET_HashCodegrothoff
git-svn-id: https://gnunet.org/svn/gnunet@21926 140774ce-b5e7-0310-ab8b-a85725594a96
2012-05-15-help seaspider some moregrothoff
git-svn-id: https://gnunet.org/svn/gnunet@21487 140774ce-b5e7-0310-ab8b-a85725594a96
2012-04-26-document ignored return valuegrothoff
git-svn-id: https://gnunet.org/svn/gnunet@21183 140774ce-b5e7-0310-ab8b-a85725594a96
2012-02-23TG: attached are the following patches for GNUnet:grothoff
- 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 git-svn-id: https://gnunet.org/svn/gnunet@19979 140774ce-b5e7-0310-ab8b-a85725594a96
2012-02-13-use GNUNET_free instead of freegrothoff
git-svn-id: https://gnunet.org/svn/gnunet@19776 140774ce-b5e7-0310-ab8b-a85725594a96
2012-01-25-dcegrothoff
git-svn-id: https://gnunet.org/svn/gnunet@19363 140774ce-b5e7-0310-ab8b-a85725594a96
2011-12-30-LRN: use FPRINTF -- #2051grothoff
git-svn-id: https://gnunet.org/svn/gnunet@18855 140774ce-b5e7-0310-ab8b-a85725594a96
2011-12-30-LRN: fix syscall namegrothoff
git-svn-id: https://gnunet.org/svn/gnunet@18851 140774ce-b5e7-0310-ab8b-a85725594a96
2011-12-06LRN: correct behaviour when logfile does not existgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@18476 140774ce-b5e7-0310-ab8b-a85725594a96
2011-12-06LRN: Ensure that GTK can then do the internal call write(2, message, strlengrothoff
(message)); successfully by default. git-svn-id: https://gnunet.org/svn/gnunet@18474 140774ce-b5e7-0310-ab8b-a85725594a96
2011-11-29-fixing indentationgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@18394 140774ce-b5e7-0310-ab8b-a85725594a96
2011-11-28-more doxygen fixesgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@18356 140774ce-b5e7-0310-ab8b-a85725594a96
2011-11-05introducing GNUNET_abortgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@18028 140774ce-b5e7-0310-ab8b-a85725594a96
2011-11-05treat empty string as NULLgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@18026 140774ce-b5e7-0310-ab8b-a85725594a96
2011-11-05LRN: Use regexps in logdefsgrothoff
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). git-svn-id: https://gnunet.org/svn/gnunet@18016 140774ce-b5e7-0310-ab8b-a85725594a96
2011-11-04curly wars / auto-indentationgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@18000 140774ce-b5e7-0310-ab8b-a85725594a96
2011-10-14LRN: Use GNUNET_strdup() instead of strdup()grothoff
git-svn-id: https://gnunet.org/svn/gnunet@17473 140774ce-b5e7-0310-ab8b-a85725594a96
2011-10-12allow NULLgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@17419 140774ce-b5e7-0310-ab8b-a85725594a96
2011-10-11check vspnrintf return value, stack-allocate log buffergrothoff
git-svn-id: https://gnunet.org/svn/gnunet@17366 140774ce-b5e7-0310-ab8b-a85725594a96
2011-10-11converting to GNUNET_LOG_from*grothoff
git-svn-id: https://gnunet.org/svn/gnunet@17362 140774ce-b5e7-0310-ab8b-a85725594a96
2011-10-09LRN: Fix logdef processing logicgrothoff
Now if logdef matches, it is used to both allow AND restrict the call. git-svn-id: https://gnunet.org/svn/gnunet@17297 140774ce-b5e7-0310-ab8b-a85725594a96
2011-10-04LRN's big logging rewrite (#1805):grothoff
* 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 git-svn-id: https://gnunet.org/svn/gnunet@17162 140774ce-b5e7-0310-ab8b-a85725594a96
2011-08-15indentationgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@16583 140774ce-b5e7-0310-ab8b-a85725594a96
2011-08-15indentationgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@16581 140774ce-b5e7-0310-ab8b-a85725594a96
2011-08-01LRN: Allow env vars to adjust and override loglevelgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@16283 140774ce-b5e7-0310-ab8b-a85725594a96
2011-06-20high-precision LOG timersgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@15720 140774ce-b5e7-0310-ab8b-a85725594a96
2011-02-24fixgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@14526 140774ce-b5e7-0310-ab8b-a85725594a96
2010-11-23log with pidgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@13783 140774ce-b5e7-0310-ab8b-a85725594a96
2010-11-05LRN patch from Mantis #1615grothoff
git-svn-id: https://gnunet.org/svn/gnunet@13562 140774ce-b5e7-0310-ab8b-a85725594a96
2010-10-27Changed GNUNET_TIME_Absolute and GNUNET_TIME_Relative to allow safe ↵wachs
comparisons between time values git-svn-id: https://gnunet.org/svn/gnunet@13413 140774ce-b5e7-0310-ab8b-a85725594a96
2010-10-08fix warningdurner
git-svn-id: https://gnunet.org/svn/gnunet@13239 140774ce-b5e7-0310-ab8b-a85725594a96
2010-08-14fixgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@12545 140774ce-b5e7-0310-ab8b-a85725594a96
2010-07-30ignore sigpipenevans
git-svn-id: https://gnunet.org/svn/gnunet@12404 140774ce-b5e7-0310-ab8b-a85725594a96
2010-06-25cleaning argz messgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@11952 140774ce-b5e7-0310-ab8b-a85725594a96
2010-06-22fixgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@11875 140774ce-b5e7-0310-ab8b-a85725594a96
2010-06-20stylegrothoff
git-svn-id: https://gnunet.org/svn/gnunet@11836 140774ce-b5e7-0310-ab8b-a85725594a96
2010-06-18check lengrothoff
git-svn-id: https://gnunet.org/svn/gnunet@11815 140774ce-b5e7-0310-ab8b-a85725594a96
2010-06-17fixesgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@11792 140774ce-b5e7-0310-ab8b-a85725594a96
2010-06-11sizegrothoff
git-svn-id: https://gnunet.org/svn/gnunet@11667 140774ce-b5e7-0310-ab8b-a85725594a96
2010-06-07fixgrothoff
git-svn-id: https://gnunet.org/svn/gnunet@11624 140774ce-b5e7-0310-ab8b-a85725594a96